BLOG-79 AI review bot #80
18
.gitea/workflows/pr_agent.yaml
Normal file
18
.gitea/workflows/pr_agent.yaml
Normal file
@ -0,0 +1,18 @@
|
||||
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"
|
Loading…
x
Reference in New Issue
Block a user