Skip to content

Commit f781c74

Browse files
committed
debug
1 parent ebf5e68 commit f781c74

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/cr.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
# if: ${{ contains(github.event.*.labels.*.name, 'gpt review') }} # Optional; to run only when a label is attached
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: anc95/ChatGPT-CodeReview@main
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
20+
# Optional
21+
LANGUAGE: Chinese
22+
OPENAI_API_ENDPOINT: https://api.openai.com/v1
23+
MODEL: gpt-3.5-turbo # https://platform.openai.com/docs/models
24+
PROMPT: # example: Please check if there are any confusions or irregularities in the following code diff:
25+
top_p: 1 # https://platform.openai.com/docs/api-reference/chat/create#chat/create-top_p
26+
temperature: 1 # https://platform.openai.com/docs/api-reference/chat/create#chat/create-temperature
27+
max_tokens: 10000
28+
MAX_PATCH_LENGTH: 10000 # if the patch/diff length is large than MAX_PATCH_LENGTH, will be ignored and won't review. By default, with no MAX_PATCH_LENGTH set, there is also no limit for the patch/diff length.

0 commit comments

Comments
 (0)