From 9445444b2168042075ff22ce96869b52d6f3d972 Mon Sep 17 00:00:00 2001 From: Oliver Paraskos Date: Sun, 6 Aug 2023 13:39:49 +0100 Subject: [PATCH] add at code review workflow --- .github/workflows/ai-pull-request.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/ai-pull-request.yml diff --git a/.github/workflows/ai-pull-request.yml b/.github/workflows/ai-pull-request.yml new file mode 100644 index 0000000..b5b7a54 --- /dev/null +++ b/.github/workflows/ai-pull-request.yml @@ -0,0 +1,20 @@ +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.6.0 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} \ No newline at end of file