From 44aea499e037de97480b181bdcb8762aa3da1e15 Mon Sep 17 00:00:00 2001 From: Shargon Date: Thu, 15 Feb 2024 08:49:57 +0100 Subject: [PATCH] IA: Check IA reviewer (#872) * IA: Check IA reviewer Add automatics reviews to ours prs * needs Tests * needs before * Use their repo with hash --- .github/workflows/main.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4712a2a84..47fefc808 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -35,9 +35,24 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} + Review: + needs: Test + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@v4 + + - name: AI Code Reviewer + uses: freeedcom/ai-codereviewer@a9a064dfa1db8c83f40ef63f6e247fa09c935ed6 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} + OPENAI_API_MODEL: "gpt-4" # Optional: defaults to "gpt-4" + exclude: "**/*.json, **/*.md" # Optional: exclude patterns separated by commas + Release: - if: github.ref == 'refs/heads/master' && startsWith(github.repository, 'neo-project/') needs: Test + if: github.ref == 'refs/heads/master' && startsWith(github.repository, 'neo-project/') runs-on: ubuntu-latest steps: - name: Checkout