Open History to see the last commit
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
13permissions:
14 contents: read
15
16jobs:
17 forward:
18 name: POST to Cursor
19 runs-on: ubuntu-24.04
20 steps:
21 - name: POST to Cursor
22 env:
23 URL: ${{ secrets.CURSOR_T3CODE_WEBHOOK_URL }}
24 AUTH: ${{ secrets.CURSOR_T3CODE_WEBHOOK_AUTH }}
25 run: |
26 set -euo pipefail
27 if [ -z "${URL:-}" ] || [ -z "${AUTH:-}" ]; then
28 echo "Missing CURSOR_T3CODE_WEBHOOK_URL or CURSOR_T3CODE_WEBHOOK_AUTH — skipping."
29 exit 0
30 fi
31 curl -fsS --max-time 60 -X POST "$URL" \
32 -H "Authorization: $AUTH" \
33 -H "Content-Type: application/json" \
34 -H "X-GitHub-Event: ${{ github.event_name }}" \
35 -H "X-GitHub-Delivery: ${{ github.run_id }}-${{ github.run_attempt }}" \
36 --data-binary @"${{ github.event_path }}"