更新 .gitea/workflows/code-review.yml
This commit is contained in:
@@ -1,7 +1,17 @@
|
|||||||
|
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
|
- name: OpenAI Code Review
|
||||||
uses: ingress-it-solutions/gitea-code-review-action@v0.1
|
uses: ingress-it-solutions/gitea-code-review-action@v0.1
|
||||||
env:
|
env:
|
||||||
OPENAI_PROXY: https://api.zhizengzeng.com/v1 # 或 https://...
|
OPENAI_PROXY: https://api.zhizengzeng.com/v1
|
||||||
with:
|
with:
|
||||||
SOURCE_AT: gitea
|
SOURCE_AT: gitea
|
||||||
GITHUB_BASE_URL: https://devstar.cn
|
GITHUB_BASE_URL: https://devstar.cn
|
||||||
|
|||||||
Reference in New Issue
Block a user