sentry-issues #203
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
| # Polls Sentry every 30 min and opens a deduplicated GitHub issue (with stack | |
| # trace) for each new Sentry issue — so crashes surface as tracked work without | |
| # watching the dashboard. Uses caezium/sentry-to-github-issues (no Sentry | |
| # Business plan needed). Requires a read-only SENTRY_AUTH_TOKEN repo secret: | |
| # gh secret set SENTRY_AUTH_TOKEN --repo caezium/nib | |
| # (Sentry → Settings → Auth Tokens, scopes: project:read, event:read, org:read.) | |
| name: sentry-issues | |
| on: | |
| schedule: | |
| - cron: "17,47 * * * *" # every 30 min, off the rush. GitHub cron is UTC. | |
| workflow_dispatch: | |
| inputs: | |
| query: | |
| description: "Sentry issue search query" | |
| default: "is:unresolved" | |
| lookback_hours: | |
| description: "Only file issues first seen within this many hours" | |
| default: "24" | |
| permissions: | |
| contents: read | |
| issues: write | |
| concurrency: | |
| # Never let two runs file at once (they'd race the dedup read). | |
| group: sentry-issues | |
| cancel-in-progress: false | |
| jobs: | |
| file: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: caezium/sentry-to-github-issues@v1 | |
| with: | |
| sentry_org: henry-zhang-r7 | |
| sentry_projects: nib | |
| sentry_auth_token: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
| query: ${{ github.event.inputs.query || 'is:unresolved' }} | |
| lookback_hours: ${{ github.event.inputs.lookback_hours || '24' }} |