Repository navigation
chore(drift-sync): needs-human model-family decision (2026-11-20) #475
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: PR Notification | ||
|
Check warning on line 1 in .github/workflows/notify-pr.yml
|
||
| 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" | ||