added workflow

This commit is contained in:
David Gey 2023-10-19 16:37:59 +02:00
parent 923e2b7aa3
commit c08513ba75

22
.github/workflows/codereviewer.yaml 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: david@thank-the-maker.org/ai-code-reviewer@main
with:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
OPENAI_API_MODEL: "gpt-3" # Optional: defaults to "gpt-4"
exclude: "**/*.json, **/*.md" # Optional: exclude patterns separated by commas