chore: setup chatgpt code review pipeline
This commit is contained in:
parent
9b477aaf92
commit
ad7b3d3d16
3 changed files with 89 additions and 79 deletions
18
.github/workflows/cr.yml
vendored
Normal file
18
.github/workflows/cr.yml
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
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 }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue