BLOG-79 fix: gitea context
Some checks failed
Frontend CI / build (push) Successful in 1m8s
Auto Comment On PR / add_improve_comment (pull_request) Failing after 16s
PR Title Check / pr-title-check (pull_request) Failing after 13s

This commit is contained in:
SquidSpirit 2025-07-26 06:09:13 +08:00
parent bb9d7b3dea
commit 7e29ade13f

View File

@ -11,8 +11,10 @@ jobs:
steps: steps:
- name: Add '/improve' comment to PR - name: Add '/improve' comment to PR
run: | run: |
echo "${{ github.ref_name }}"
echo "${{ vars.GIT_PROVIDER_URL }}/api/v1/repos/${{ gitea.repository }}/pulls/${{ gitea.pull_request.number }}/reviews"
curl --fail -X POST \ curl --fail -X POST \
-H "Authorization: token ${{ secrets.BOT_PAT }}" \ -H "Authorization: token ${{ secrets.BOT_PAT }}" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-d '{"body": "/improve"}' \ -d '{"body": "/improve"}' \
"${{ vars.GIT_PROVIDER_URL }}/api/v1/repos/${{ gitea.repository.owner }}/${{ gitea.repository.name }}/pulls/${{ gitea.pull_request.number }}/reviews" "${{ vars.GIT_PROVIDER_URL }}/api/v1/repos/${{ gitea.repository }}/pulls/${{ gitea.pull_request.number }}/reviews"