更新 .gitea/workflows/code-review.yml
This commit is contained in:
@@ -14,23 +14,23 @@ jobs:
|
||||
# GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||
|
||||
steps:
|
||||
# - name: Preflight - diff 接口可用性
|
||||
# run: |
|
||||
# set -e
|
||||
# echo "repo=${{ github.repository }}"
|
||||
# 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
|
||||
# echo "diff endpoint OK"
|
||||
- name: Preflight - diff 接口可用性
|
||||
run: |
|
||||
set -e
|
||||
echo "repo=${{ github.repository }}"
|
||||
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
|
||||
echo "diff endpoint OK"
|
||||
|
||||
# - name: Preflight - 评论接口可用性
|
||||
# run: |
|
||||
# set -e
|
||||
# curl -sSf -X POST \
|
||||
# -H "Authorization: token $GH_TOKEN" \
|
||||
# -H "Content-Type: application/json" \
|
||||
# -d '{"body":"healthcheck from workflow"}' \
|
||||
# "$BASE/api/v1/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/comments" >/dev/null
|
||||
# echo "comment endpoint OK"
|
||||
- name: Preflight - 评论接口可用性
|
||||
run: |
|
||||
set -e
|
||||
curl -sSf -X POST \
|
||||
-H "Authorization: token $GH_TOKEN" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"body":"healthcheck from workflow"}' \
|
||||
"$BASE/api/v1/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/comments" >/dev/null
|
||||
echo "comment endpoint OK"
|
||||
# - name: Preflight - OpenAI 连接
|
||||
# env:
|
||||
# OPENAI_TOKEN: ${{ secrets.OPENAI_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user