Перейти к содержимому

AI-ревью PR готов

GitHub-вебхук на событие pull_request_review или issue_comment от бот-аккаунта — и push сразу на телефон.

Самый простой путь — Webhook-роутер Notifly с фильтром по автору:

application/json
# GitHub repo settings → Webhooks → Add webhook
# Payload URL: https://api.notifly.ru/router/R<token>/github-review
# Events: Pull request reviews, Issue comments

В правиле роутера с путём /github-review поставьте фильтр по автору (группа типа any: review.user.login или comment.user.login равно ai-bot[bot]) и соберите title/message шаблонами, например 🤖 Ревью: {{.Payload.pull_request.title}}. Альтернатива — workflow в GitHub Actions:

on: pull_request_review
jobs:
notify:
if: github.event.review.user.login == 'github-actions[bot]'
runs-on: ubuntu-latest
steps:
- run: |
curl -fsS "$NOTIFLY_URL/message?token=$NOTIFLY_TOKEN" \
-H "Content-Type: application/json" \
-d "{\"title\":\"🤖 AI review готов\",\"message\":\"$PR_TITLE\\n${{ github.event.pull_request.html_url }}\",\"priority\":5}"
env:
PR_TITLE: ${{ github.event.pull_request.title }}