xwbx e4e5ba919e
ci: 升级 GitHub Actions 依赖
- actions/checkout: v3/master -> v7
- pnpm/action-setup: v2 -> v5 (兼容 pnpm v10,v6 需 v11+)
- easingthemes/ssh-deploy: main -> v6
- JamesIves/github-pages-deploy-action: v4.3.3 -> v4.9.0
- softprops/action-gh-release: v1 -> v3 (token 改用 with)
- Yikun/hub-mirror-action: master -> v1.5
- anc95/ChatGPT-CodeReview: main -> v1
2026-08-18 11:21:46 +08:00

26 lines
465 B
YAML

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@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
# Optional
LANGUAGE: Chinese
MODEL: gpt-3.5-turbo
top_p: 1
temperature: 1