From 192c3da82189d368fdecb5e5f8ddabc896267aa9 Mon Sep 17 00:00:00 2001 From: PierreGode <8579922+PierreGode@users.noreply.github.com> Date: Fri, 12 Apr 2024 20:49:13 +0200 Subject: [PATCH] Create review.yml --- .github/workflows/review.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/review.yml diff --git a/.github/workflows/review.yml b/.github/workflows/review.yml new file mode 100644 index 0000000..982792d --- /dev/null +++ b/.github/workflows/review.yml @@ -0,0 +1,22 @@ +name: AI Code Reviewer + +on: + pull_request: + types: + - opened + - synchronize +permissions: write-all +jobs: + review: + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@v3 + + - name: AI Code Reviewer + uses: freeedcom/ai-codereviewer@v2.7.0 + with: + GITHUB_TOKEN: ${{ secrets.G_TOKEN }} + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} + OPENAI_API_MODEL: "gpt-4-turbo-2024-04-09" # Optional: defaults to "gpt-4" + exclude: "**/*.json, **/*.md" # Optional: exclude patterns separated by commas