We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3fea312 commit 298ab0fCopy full SHA for 298ab0f
.github/workflows/pr comment by chatgpt.yml
@@ -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
23
+ OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
0 commit comments