ChatGPT-CodeReview
基于 ChatGPT 的 GitHub 代码审查机器人,可自动对 pull request 进行代码审查并提供反馈。支持通过 GitHub App 或 GitHub Actions 集成,需配置 OpenAI API 密钥。
• Copy the embed code to showcase this product on your website
• Share on X to spread the word about this amazing tool
Github 地址:ChatGPT-CodeReview机器人地址:github.com/apps/cr-gpt## 使用### 机器人> 需要有自己的 openai 账号,并生成 API_KEY1. 安装机器人,并按 ChatGPT-CodeReview 文档配置 API_KEY2. 新建一个 pull request 或给已有的 pr push 新的代码都会触发机器人 review,review 的结果会评论在每一个文件最下方demo:- https://github.com/anc95/ChatGPT-CodeReview/pull/21- https://github.com/anc95/ChatGPT-CodeReview/pull/20### 通过 Github Actions 方式集成Github Actions配置 `.github/workflow/cr.yml````ymlname: Code Reviewpermissions: contents: read pull-requests: writeon: pull_request: types: [opened, reopened]jobs: test: runs-on: ubuntu-latest steps: - uses: anc95/ChatGPT-CodeReview@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}```