re
re
This commit is contained in:
30
.github/workflows/code-review.yml
vendored
30
.github/workflows/code-review.yml
vendored
@@ -1,28 +1,22 @@
|
||||
name: Code Review
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, synchronize]
|
||||
types: [opened, reopened, synchronize]
|
||||
|
||||
jobs:
|
||||
code_review:
|
||||
test:
|
||||
runs-on: self_hosted
|
||||
|
||||
steps:
|
||||
- name: Checkout PR branch
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
cd ChatGPT-CodeReview
|
||||
npm install
|
||||
|
||||
- name: Run ChatGPT Code Review
|
||||
run: npx ./ChatGPT-CodeReview/bin/index.js
|
||||
- uses: anc95/ChatGPT-CodeReview@main
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
||||
# optional
|
||||
LANGUAGE: Korean
|
||||
PROMPT:
|
||||
IGNORE_PATTERNS: /node_modules,*.md # Regex pattern to ignore files, separated by comma
|
||||
Reference in New Issue
Block a user