Skip to content

Commit 3e90e5e

Browse files
committed
add chatgpt code reviewer
(cherry picked from commit 7f6f5b5b454c3ac533e87ba43adeb5fd50d5ff9b)
1 parent 88e8fbc commit 3e90e5e

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/cr.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Code Review
2+
3+
permissions:
4+
contents: read
5+
pull-requests: write
6+
7+
on:
8+
pull_request:
9+
types: [opened, reopened, synchronize]
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: anc95/ChatGPT-CodeReview@main
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
19+
# Optional
20+
LANGUAGE: Chinese
21+
MODEL:
22+
top_p: 1
23+
temperature: 1

0 commit comments

Comments
 (0)