BLOG-79 AI review bot (#83)
All checks were successful
Frontend CI / build (push) Successful in 1m5s
All checks were successful
Frontend CI / build (push) Successful in 1m5s
### 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>
This commit is contained in:
parent
95fabee99d
commit
f400bcf486
20
.gitea/workflows/pr_agent.yaml
Normal file
20
.gitea/workflows/pr_agent.yaml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
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"
|
Loading…
x
Reference in New Issue
Block a user