Skip to content

Commit

Permalink
chore: update chatgpt code view
Browse files Browse the repository at this point in the history
  • Loading branch information
JeromeLin committed Apr 24, 2023
1 parent 328cf39 commit 6d81ad6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/cr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,19 @@ permissions:

on:
pull_request:
types: [opened, reopened]
types: [opened, reopened, synchronize]

jobs:
test:
if: ${{ contains(github.event.*.labels.*.name, 'gpt review') }} # Optional; to run only when a label is attached
runs-on: ubuntu-latest
steps:
- uses: anc95/ChatGPT-CodeReview@v1.0.4
- uses: anc95/ChatGPT-CodeReview@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
# Optional
LANGUAGE: Chinese
MODEL:
top_p: 1
temperature: 1

0 comments on commit 6d81ad6

Please sign in to comment.