feat(web): add provider selector to pull request toolbar (#11524) #76
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: Forward to Cursor hygiene | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| types: [opened, reopened, ready_for_review] | |
| issues: | |
| types: [opened, closed, reopened] | |
| discussion: | |
| types: [created, closed, reopened] | |
| permissions: | |
| contents: read | |
| jobs: | |
| forward: | |
| name: POST to Cursor | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: POST to Cursor | |
| env: | |
| URL: ${{ secrets.CURSOR_T3CODE_WEBHOOK_URL }} | |
| AUTH: ${{ secrets.CURSOR_T3CODE_WEBHOOK_AUTH }} | |
| run: | | |
| set -euo pipefail | |
| if [ -z "${URL:-}" ] || [ -z "${AUTH:-}" ]; then | |
| echo "Missing CURSOR_T3CODE_WEBHOOK_URL or CURSOR_T3CODE_WEBHOOK_AUTH — skipping." | |
| exit 0 | |
| fi | |
| curl -fsS --max-time 60 -X POST "$URL" \ | |
| -H "Authorization: $AUTH" \ | |
| -H "Content-Type: application/json" \ | |
| -H "X-GitHub-Event: ${{ github.event_name }}" \ | |
| -H "X-GitHub-Delivery: ${{ github.run_id }}-${{ github.run_attempt }}" \ | |
| --data-binary @"${{ github.event_path }}" |