Skip to content

chore(drift-sync): needs-human model-family decision (2026-11-20) #475

chore(drift-sync): needs-human model-family decision (2026-11-20)

chore(drift-sync): needs-human model-family decision (2026-11-20) #475

Workflow file for this run

name: PR Notification

Check warning on line 1 in .github/workflows/notify-pr.yml

View workflow run for this annotation

GitHub Actions / PR Notification

Workflow execution policy warning (evaluate mode)

On December 2, 2026, GitHub will restrict `pull_request_target` on public repositories by default. To continue allowing the event trigger, configure an Actions policy. Learn more: https://gh.io/securely-using-pull_request_target#default-policy-for-pull_request_target
on:
pull_request_target:
types: [opened]
permissions: {}
jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Notify Slack
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
PR_TITLE: ${{ github.event.pull_request.title }}
PR_URL: ${{ github.event.pull_request.html_url }}
PR_AUTHOR: ${{ github.event.pull_request.user.login }}
PR_NUM: ${{ github.event.pull_request.number }}
run: |
if [ -z "$SLACK_WEBHOOK" ]; then echo "SLACK_WEBHOOK not set, skipping"; exit 0; fi
PAYLOAD=$(jq -n \
--arg text "New PR #${PR_NUM} on aimock by *${PR_AUTHOR}*: <${PR_URL}|${PR_TITLE}>" \
'{text: $text}')
curl -sf -X POST "$SLACK_WEBHOOK" \
-H "Content-Type: application/json" \
-d "$PAYLOAD"