Skip to content

feat(crossposting): persist ranker decision log for retro analysis #121

feat(crossposting): persist ranker decision log for retro analysis

feat(crossposting): persist ranker decision log for retro analysis #121

name: Staff Engineer Review Trigger
# pull_request_target runs the workflow from the BASE branch (production),
# not the PR's head branch. This ensures the trigger fires for ALL PRs,
# even those created before this workflow existed.
# Safe because this job only fires a webhook — no code checkout.
on:
pull_request_target:
branches: [production]
types: [opened, reopened, synchronize, edited]
jobs:
notify-staff-engineer:
runs-on: ubuntu-latest
steps:
- name: Trigger Staff Engineer review
run: |
curl -s -X POST \
"https://org.ffmemes.com/api/routine-triggers/public/910d844a954042dc060c56bf/fire" \
-H "Authorization: Bearer ${{ secrets.PAPERCLIP_TRIGGER_SECRET }}" \
-H "Content-Type: application/json" \
-d '{"pr_number": ${{ github.event.pull_request.number }}, "pr_url": "${{ github.event.pull_request.html_url }}"}'