Skip to content

Commit

Permalink
chore: add gpt for code review (#4828)
Browse files Browse the repository at this point in the history
* chore: add gpt for code review

* chore: rename secrets

* chore: trigger action

* chore: use GITHUB_TOKEN
  • Loading branch information
hustcc committed Apr 24, 2023
1 parent f0f0b19 commit 975a01e
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/cr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: 🤖 Code Review

permissions:
contents: read
pull-requests: write

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

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: anc95/ChatGPT-CodeReview@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
LANGUAGE: Chinese
MODEL:
top_p: 1
temperature: 1

0 comments on commit 975a01e

Please sign in to comment.