diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index eb4d5610..f31a1c63 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,6 +1,5 @@ # Changes - -@coderabbitai summary + ## Issue diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 476d6f7e..e041ff07 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -15,3 +15,17 @@ jobs: contents: read issues: read checks: write + + run_code_review: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Code Review GPT + uses: mattzcarey/code-review-gpt@v0.1.10 + with: + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} + MODEL: 'gpt-4o' + GITHUB_TOKEN: ${{ github.token }}