更新 .gitea/workflows/code-review.yml
This commit is contained in:
@@ -1,13 +1,23 @@
|
|||||||
- name: OpenAI Code Review
|
name: AI Code Review (on comment)
|
||||||
uses: ingress-it-solutions/gitea-code-review-action@v0.1
|
on:
|
||||||
env:
|
issue_comment:
|
||||||
OPENAI_PROXY: https://api.zhizengzeng.com/v1 # 或 https://...
|
types: [created, edited]
|
||||||
with:
|
|
||||||
SOURCE_AT: gitea
|
jobs:
|
||||||
GITHUB_BASE_URL: https://devstar.cn
|
review:
|
||||||
PROGRAMMING_LANGUAGE: 'JavaScript'
|
runs-on: ubuntu-latest
|
||||||
FULL_REVIEW_COMMENT: openai
|
if: github.event.issue.pull_request && (startsWith(github.event.comment.body, 'openai') || github.event.comment.body == 'openai')
|
||||||
REVIEW_COMMENT_PREFIX: 'openai:'
|
steps:
|
||||||
MAX_CODE_LENGTH: 6000
|
- name: OpenAI Code Review
|
||||||
OPENAI_TOKEN: ${{ secrets.OPENAI_TOKEN }}
|
uses: ingress-it-solutions/gitea-code-review-action@v0.1
|
||||||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
env:
|
||||||
|
OPENAI_PROXY: https://api.zhizengzeng.com/v1
|
||||||
|
with:
|
||||||
|
SOURCE_AT: gitea
|
||||||
|
GITHUB_BASE_URL: https://devstar.cn
|
||||||
|
PROGRAMMING_LANGUAGE: 'JavaScript'
|
||||||
|
FULL_REVIEW_COMMENT: openai
|
||||||
|
REVIEW_COMMENT_PREFIX: 'openai:'
|
||||||
|
MAX_CODE_LENGTH: 6000
|
||||||
|
OPENAI_TOKEN: ${{ secrets.OPENAI_TOKEN }}
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||||
Reference in New Issue
Block a user