{"id":50360837,"url":"https://github.com/codeweiz/langchain_quick_start","last_synced_at":"2026-05-30T01:21:02.387Z","repository":{"id":292479600,"uuid":"978500296","full_name":"codeweiz/langchain_quick_start","owner":"codeweiz","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-19T15:28:34.000Z","size":2620,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-19T15:54:00.255Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codeweiz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-06T04:49:43.000Z","updated_at":"2025-05-19T15:19:11.000Z","dependencies_parsed_at":"2025-05-10T08:38:46.440Z","dependency_job_id":null,"html_url":"https://github.com/codeweiz/langchain_quick_start","commit_stats":null,"previous_names":["codeweiz/langchain_quick_start"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codeweiz/langchain_quick_start","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeweiz%2Flangchain_quick_start","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeweiz%2Flangchain_quick_start/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeweiz%2Flangchain_quick_start/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeweiz%2Flangchain_quick_start/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeweiz","download_url":"https://codeload.github.com/codeweiz/langchain_quick_start/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeweiz%2Flangchain_quick_start/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33677253,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-05-30T01:21:00.278Z","updated_at":"2026-05-30T01:21:02.370Z","avatar_url":"https://github.com/codeweiz.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LangChain PR 代码质量自动审查\n\n## 项目简介\n\n本项目实现了一个自动化的 PR 代码质量审查 MVP：\n- 监听 GitHub PR Webhook 事件\n- 自动拉取 PR 的 diff、commit 信息\n- 基于 LangChain + Deepseek LLM 进行代码质量分析\n- 自动将分析结果评论到 PR\n- 支持异步后台处理，主线程快速响应\n\n---\n\n## 目录结构\n\n```\nlangchain_quick_start/\n├── app/\n│   ├── domain/                  # 领域模型与接口\n│   ├── service/                 # 主流程、GitHub、反馈等实现\n│   └── llm_checker/             # LLM 质量分析与 prompt\n├── test/                        # 测试代码\n├── common/                      # 通用工具/配置\n├── services/                    # 其他微服务\n├── .env                         # 环境变量\n├── pyproject.toml               # 依赖管理\n├── README.md\n├── main.py                      # FastAPI Webhook 入口\n```\n\n---\n\n## 依赖安装\n\n推荐使用 [uv](https://github.com/astral-sh/uv)：\n\n```bash\nuv pip install pyproject.toml\n```\n\n---\n\n## 环境变量配置\n\n在项目根目录新建 `.env` 文件，内容示例：\n```\nGITHUB_TOKEN=你的github token\nDEEPSEEK_API_KEY=你的deepseek api key\n```\n\n---\n\n## 运行方式\n\n```bash\nuvicorn main:app --reload\n```\n\n---\n\n## 主要接口说明\n\n- Webhook 入口：`POST /webhook`\n  - 监听 GitHub PR 事件（opened/synchronize）\n  - 自动拉取 diff、commit，LLM 分析并评论到 PR\n  - 主线程快速返回 `{\"msg\": \"已接收，后台处理中\"}`\n\n---\n\n## 设计亮点\n\n- 领域驱动分层，接口解耦，易扩展\n- LLM 代码质量分析可插拔，支持多模型\n- 所有敏感信息通过环境变量管理，安全合规\n- 支持 LangChain Tool 封装 GitHub 能力，便于智能体扩展\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeweiz%2Flangchain_quick_start","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeweiz%2Flangchain_quick_start","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeweiz%2Flangchain_quick_start/lists"}