From 00a032bc34052b77e10c75f5918506a900e9ca50 Mon Sep 17 00:00:00 2001 From: o-leolleo Date: Wed, 20 Mar 2024 19:09:42 +0100 Subject: [PATCH] feat: Adds new review workflow --- .github/workflows/pr-review.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/pr-review.yml b/.github/workflows/pr-review.yml index e69de29..e482cb9 100644 --- a/.github/workflows/pr-review.yml +++ b/.github/workflows/pr-review.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: mattzcarey/code-review-gpt@v0.1.4-alpha + with: + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} + MODEL: 'gpt-3.5-turbo' + GITHUB_TOKEN: ${{ github.token }}