codereviewchange
This commit is contained in:
14
.github/workflows/code-review.yml
vendored
14
.github/workflows/code-review.yml
vendored
@@ -9,12 +9,20 @@ jobs:
|
||||
runs-on: self_hosted
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Checkout PR branch
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- uses: actions/setup-node@v3
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
|
||||
- run: chatgpt-code-review
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
cd ChatGPT-CodeReview
|
||||
npm install
|
||||
|
||||
- name: Run ChatGPT Code Review
|
||||
run: npx ./ChatGPT-CodeReview/bin/index.js
|
||||
env:
|
||||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
||||
Reference in New Issue
Block a user