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

This commit is contained in:
2025-08-26 05:14:37 +00:00
parent b3bad42f62
commit 1dfdc26bab

View File

@@ -14,23 +14,23 @@ jobs:
# GH_TOKEN: ${{ secrets.GH_TOKEN }} # GH_TOKEN: ${{ secrets.GH_TOKEN }}
steps: steps:
# - name: Preflight - diff 接口可用性 - name: Preflight - diff 接口可用性
# run: | run: |
# set -e set -e
# echo "repo=${{ github.repository }}" echo "repo=${{ github.repository }}"
# echo "issue.number=${{ github.event.issue.number }}" echo "issue.number=${{ github.event.issue.number }}"
# curl -sSf -H "Authorization: token $GH_TOKEN" -H "Accept: application/vnd.github.diff" "$BASE/api/v1/repos/${{ github.repository }}/pulls/${{ github.event.issue.number }}.diff" >/dev/null curl -sSf -H "Authorization: token $GH_TOKEN" -H "Accept: application/vnd.github.diff" "$BASE/api/v1/repos/${{ github.repository }}/pulls/${{ github.event.issue.number }}.diff" >/dev/null
# echo "diff endpoint OK" echo "diff endpoint OK"
# - name: Preflight - 评论接口可用性 - name: Preflight - 评论接口可用性
# run: | run: |
# set -e set -e
# curl -sSf -X POST \ curl -sSf -X POST \
# -H "Authorization: token $GH_TOKEN" \ -H "Authorization: token $GH_TOKEN" \
# -H "Content-Type: application/json" \ -H "Content-Type: application/json" \
# -d '{"body":"healthcheck from workflow"}' \ -d '{"body":"healthcheck from workflow"}' \
# "$BASE/api/v1/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/comments" >/dev/null "$BASE/api/v1/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/comments" >/dev/null
# echo "comment endpoint OK" echo "comment endpoint OK"
# - name: Preflight - OpenAI 连接 # - name: Preflight - OpenAI 连接
# env: # env:
# OPENAI_TOKEN: ${{ secrets.OPENAI_TOKEN }} # OPENAI_TOKEN: ${{ secrets.OPENAI_TOKEN }}