blog/.gitea/workflows/pr_agent.yaml
SquidSpirit bb9d7b3dea
Some checks failed
Frontend CI / build (push) Successful in 1m20s
PR Title Check / pr-title-check (pull_request) Failing after 13s
Auto Comment On PR / add_improve_comment (pull_request) Failing after 17s
BLOG-79 build: auto comment /improve command
2025-07-26 05:53:40 +08:00

19 lines
545 B
YAML

name: Auto Comment On PR
on:
pull_request:
types:
- opened
jobs:
add_improve_comment:
runs-on: ubuntu-latest
steps:
- name: Add '/improve' comment to PR
run: |
curl --fail -X POST \
-H "Authorization: token ${{ secrets.BOT_PAT }}" \
-H "Content-Type: application/json" \
-d '{"body": "/improve"}' \
"${{ vars.GIT_PROVIDER_URL }}/api/v1/repos/${{ gitea.repository.owner }}/${{ gitea.repository.name }}/pulls/${{ gitea.pull_request.number }}/reviews"