Create review.yml

This commit is contained in:
PierreGode 2024-04-12 20:49:13 +02:00 committed by GitHub
parent cd90f38d85
commit 192c3da821
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

22
.github/workflows/review.yml vendored Normal file
View File

@ -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