Skip to content

Commit 298ab0f

Browse files
LeoYuanJackLian
authored andcommitted
feat: add code review job by chatgpt
1 parent 3fea312 commit 298ab0f

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Pull Request Review By ChatGPT
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
7+
jobs:
8+
code-review:
9+
name: Code Review
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
# 判断用户是否有写仓库权限
14+
- name: 'Check User Permission'
15+
uses: 'lannonbr/repo-permission-check-action@2.0.0'
16+
with:
17+
permission: 'write'
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
21+
- uses: opensumi/actions/.github/actions/code-review@main
22+
env:
23+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}

0 commit comments

Comments
 (0)