authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-09-03 17:12:17-07:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-09-03 17:12:17-07:00
log44701efd6790c39dc82cb08104f7295e1780210f
tree8ac2aa1b9962d2dde7bd6191277d26911fd67a28
parent9c9ae3dc0e94a957d9c4a61bb211caf914828054
signature Signed by PGP key B5690EEEBB952194

chore: forward issue/PR/discussion events to Cursor hygiene (#9518)

Co-authored-by: macroscopeapp[bot] <170038800+macroscopeapp[bot]@users.noreply.github.com>

1 files changed, 40 insertions(+), 0 deletions(-)

.github/workflows/cursor-hygiene-webhook.yml created+40
......@@ -0,0 +1,40 @@
1name: Forward to Cursor hygiene
2
3on:
4 push:
5 branches: [main]
6 pull_request:
7 types: [opened, reopened, ready_for_review]
8 issues:
9 types: [opened, closed, reopened]
10 discussion:
11 types: [created, closed, reopened]
12 issue_comment:
13 types: [created]
14 discussion_comment:
15 types: [created]
16
17permissions:
18 contents: read
19
20jobs:
21 forward:
22 name: POST to Cursor
23 runs-on: ubuntu-24.04
24 steps:
25 - name: POST to Cursor
26 env:
27 URL: ${{ secrets.CURSOR_T3CODE_WEBHOOK_URL }}
28 AUTH: ${{ secrets.CURSOR_T3CODE_WEBHOOK_AUTH }}
29 run: |
30 set -euo pipefail
31 if [ -z "${URL:-}" ] || [ -z "${AUTH:-}" ]; then
32 echo "Missing CURSOR_T3CODE_WEBHOOK_URL or CURSOR_T3CODE_WEBHOOK_AUTH — skipping."
33 exit 0
34 fi
35 curl -fsS --max-time 60 -X POST "$URL" \
36 -H "Authorization: $AUTH" \
37 -H "Content-Type: application/json" \
38 -H "X-GitHub-Event: ${{ github.event_name }}" \
39 -H "X-GitHub-Delivery: ${{ github.run_id }}-${{ github.run_attempt }}" \
40 --data-binary @"${{ github.event_path }}"