BLOG-79 build: auto comment /improve command #81

Closed
squid wants to merge 2 commits from BLOG-79_ai_review_bot into main
Showing only changes of commit bb9d7b3dea - Show all commits

View 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"