Skip to content

Commit

Permalink
add chatgpt code reviewer
Browse files Browse the repository at this point in the history
(cherry picked from commit 7f6f5b5b454c3ac533e87ba43adeb5fd50d5ff9b)
  • Loading branch information
yimelia committed Mar 29, 2023
1 parent 88e8fbc commit 3e90e5e
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/cr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
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 }}
# Optional
LANGUAGE: Chinese
MODEL:
top_p: 1
temperature: 1

0 comments on commit 3e90e5e

Please sign in to comment.