diff --git a/.github/workflows/crgpt.yml b/.github/workflows/crgpt.yml new file mode 100644 index 00000000..476e05eb --- /dev/null +++ b/.github/workflows/crgpt.yml @@ -0,0 +1,20 @@ +name: Code Review GPT + +on: + pull_request: + branches: [main] + +jobs: + run_code_review: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Code Review GPT + uses: BFRS01757/code-review-gpt@main + with: + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} + MODEL: 'gpt-4o' + GITHUB_TOKEN: ${{ github.token }}