Sentry Issues → GitHub Issues #99
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: Sentry Issues → GitHub Issues | |
| on: | |
| schedule: | |
| - cron: '*/30 * * * *' # Every 30 minutes | |
| workflow_dispatch: # Manual trigger for testing | |
| permissions: | |
| issues: write | |
| contents: read | |
| jobs: | |
| sync: | |
| name: Sync Sentry Issues to GitHub | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Install dependencies | |
| run: pip install requests | |
| - name: Sync Sentry issues to GitHub | |
| env: | |
| SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
| SENTRY_ORG: ${{ secrets.SENTRY_ORG }} | |
| SENTRY_PROJECT: ${{ vars.SENTRY_PROJECT }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GITHUB_REPO: ${{ github.repository }} | |
| # 31 min (not 30) to overlap slightly with the previous run window, | |
| # absorbing GitHub Actions scheduling jitter (~1-2 min on busy runners). | |
| POLLING_MINUTES: '31' | |
| run: python .github/scripts/sentry_issues.py |