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

This commit is contained in:
2025-08-26 05:06:54 +00:00
parent 3c28b9be57
commit b3bad42f62

View File

@@ -5,7 +5,7 @@ on:
types: [created, edited] types: [created, edited]
jobs: jobs:
review: code-review:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.event.issue.pull_request && (startsWith(github.event.comment.body, 'openai') || github.event.comment.body == 'openai') if: github.event.issue.pull_request && (startsWith(github.event.comment.body, 'openai') || github.event.comment.body == 'openai')
# env: # env:
@@ -13,7 +13,7 @@ jobs:
# BASE: https://devstar.cn # BASE: https://devstar.cn
# GH_TOKEN: ${{ secrets.GH_TOKEN }} # GH_TOKEN: ${{ secrets.GH_TOKEN }}
# steps: steps:
# - name: Preflight - diff 接口可用性 # - name: Preflight - diff 接口可用性
# run: | # run: |
# set -e # set -e
@@ -42,7 +42,7 @@ jobs:
# -H "Authorization: Bearer $OPENAI_TOKEN" \ # -H "Authorization: Bearer $OPENAI_TOKEN" \
# https://api.openai.com/v1/models | head -n 1 # https://api.openai.com/v1/models | head -n 1
- name: OpenAI Code Review - name: OpenAI Code Review
uses: ingress-it-solutions/gitea-code-review-action@v0.1 uses: sgxya/gitea-code-review-action@main
# env: # env:
# # 可直连则删除本行;需代理则改成你的代理地址 # # 可直连则删除本行;需代理则改成你的代理地址
# OPENAI_PROXY: https://aiyjg.lol # OPENAI_PROXY: https://aiyjg.lol