mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 11:30:12 +08:00
fix: change to use mattzcarey/code-review-gpt
This commit is contained in:
1 parent
d0186727ce
commit
db0126de53
1 file changed
+11
-6
@@ -1,15 +1,20 @@
|
|||||||
name: CI/CD
|
name: Code Review GPT
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [opened, synchronize, reopened]
|
branches: [main]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
gpt-review:
|
run_code_review:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: gpt-review
|
- uses: actions/checkout@v3
|
||||||
uses: microsoft/gpt-review@v0.9.5
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Code Review GPT
|
||||||
|
uses: mattzcarey/code-review-gpt@v0.1.4-alpha
|
||||||
with:
|
with:
|
||||||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
||||||
|
MODEL: 'gpt-3.5-turbo'
|
||||||
|
GITHUB_TOKEN: ${{ github.token }}
|
||||||
Reference in new issue
Block a user