Skip to content

Commit 2f93813

Browse files
committed
chore(git): add ai code review workflow
- add ai code review workflow
1 parent 018e241 commit 2f93813

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/ai-pr-reviewer.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Code Review
2+
3+
permissions:
4+
contents: read
5+
pull-requests: write
6+
7+
on:
8+
pull_request:
9+
pull_request_review_comment:
10+
types: [created]
11+
12+
concurrency:
13+
group:
14+
${{ github.repository }}-${{ github.event.number || github.head_ref ||
15+
github.sha }}-${{ github.workflow }}-${{ github.event_name ==
16+
'pull_request_review_comment' && 'pr_comment' || 'pr' }}
17+
cancel-in-progress: ${{ github.event_name != 'pull_request_review_comment' }}
18+
19+
jobs:
20+
review:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: coderabbitai/ai-pr-reviewer@latest
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
27+
with:
28+
debug: false
29+
review_simple_changes: false
30+
review_comment_lgtm: false

0 commit comments

Comments
 (0)