Create cr.yml

This commit is contained in:
Anonymous
2026-03-19 21:58:39 +08:00
committed by GitHub
parent ab0fe1e2f4
commit bd3c39b687

22
.github/workflows/cr.yml vendored Normal file
View File

@@ -0,0 +1,22 @@
name: Code Review
permissions:
contents: read
pull-requests: write
on:
pull_request:
types: [opened, reopened]
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
PROMPT:
IGNORE_PATTERNS: /node_modules,*.md # Regex pattern to ignore files, separated by comma