Skip to content

Commit dd7f770

Browse files
authored
Merge pull request #3836 from riemannulus/ci/ai-code-reviewer
✨ ci: introduce ai-code-reviewer
2 parents 6323713 + 8b7713b commit dd7f770

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: AI Code Reviewer
2+
on:
3+
pull_request:
4+
types:
5+
- opened
6+
- synchronize
7+
permissions: write-all
8+
jobs:
9+
review:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout Repo
13+
uses: actions/checkout@v3
14+
15+
- name: AI Code Reviewer
16+
uses: freeedcom/[email protected]
17+
with:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # The GITHUB_TOKEN is there by default so you just need to keep it like it is and not necessarily need to add it as secret as it will throw an error. [More Details](https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret)
19+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
20+
OPENAI_API_MODEL: "gpt-4" # Optional: defaults to "gpt-4"
21+
exclude: "**/*.json, **/*.md" # Optional: exclude patterns separated by commas

0 commit comments

Comments
 (0)