更新 .gitea/workflows/code-review.yml

This commit is contained in:
2025-08-19 10:18:21 +00:00
parent 3c9ba2ef8f
commit 62853dcbdd

View File

@@ -1,7 +1,17 @@
- name: OpenAI Code Review
name: AI Code Review (on comment)
on:
issue_comment:
types: [created, edited]
jobs:
review:
runs-on: ubuntu-latest
if: github.event.issue.pull_request && (startsWith(github.event.comment.body, 'openai') || github.event.comment.body == 'openai')
steps:
- name: OpenAI Code Review
uses: ingress-it-solutions/gitea-code-review-action@v0.1
env:
OPENAI_PROXY: https://api.zhizengzeng.com/v1 # 或 https://...
OPENAI_PROXY: https://api.zhizengzeng.com/v1
with:
SOURCE_AT: gitea
GITHUB_BASE_URL: https://devstar.cn