Skip to content

Commit 26a1e99

Browse files
Add ChatGPT CodeReview GitHub Actions
1 parent 8e02134 commit 26a1e99

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: ChatGPT 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+
MODEL: gpt-4
20+
top_p: 1
21+
temperature: 0.2

0 commit comments

Comments
 (0)