mirror of
https://github.com/freeedcom/ai-codereviewer.git
synced 2025-04-21 10:06:47 +00:00
Create ai-codereviewer.yml
This commit is contained in:
parent
a9a064dfa1
commit
a2bfe3dc54
1 changed files with 24 additions and 0 deletions
24
.github/workflows/ai-codereviewer.yml
vendored
Normal file
24
.github/workflows/ai-codereviewer.yml
vendored
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
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: aidar-freeed/ai-codereviewer@main
|
||||||
|
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 certain file types
|
Loading…
Add table
Add a link
Reference in a new issue