diff --git a/.github/workflows/code_review.yml b/.github/workflows/code_review.yml new file mode 100644 index 00000000..062cb3b4 --- /dev/null +++ b/.github/workflows/code_review.yml @@ -0,0 +1,17 @@ +name: Code Review by ChatGPT + +on: + pull_request: + types: [opened, synchronize, reopened] + +jobs: + code_review: + runs-on: ubuntu-latest + steps: + - uses: anc95/ChatGPT-CodeReview@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} + MODEL: gpt-4o-mini + max_tokens: 10000 + MAX_PATCH_LENGTH: 10000