blog/.gitea/workflows/pr_agent.yaml
SquidSpirit f400bcf486
All checks were successful
Frontend CI / build (push) Successful in 1m5s
BLOG-79 AI review bot (#83)
### Description

- Use Qudo Merge as self-hosted PR agent
- Add a workflow that auto comment /improve command to start the agent

### Package Changes

_No response_

### Screenshots

_No response_

### Reference

Resolves #79

### Checklist

- [x] A milestone is set
- [x] The related issuse has been linked to this branch

Reviewed-on: #83
Co-authored-by: SquidSpirit <squid@squidspirit.com>
Co-committed-by: SquidSpirit <squid@squidspirit.com>
2025-07-26 07:01:50 +08:00

21 lines
651 B
YAML

name: Auto Comment On PR
on:
pull_request:
types:
- opened
- reopened
jobs:
add_improve_comment:
runs-on: ubuntu-latest
steps:
- name: Add '/improve' comment to PR
run: |
echo "Target URL: ${{ vars.GIT_PROVIDER_URL }}/api/v1/repos/${{ gitea.repository }}/issues/${{ gitea.ref_name }}/comments"
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 }}/issues/${{ gitea.ref_name }}/comments"