-
Notifications
You must be signed in to change notification settings - Fork 8
38 lines (32 loc) · 1.08 KB
/
sentry-to-github.yml
File metadata and controls
38 lines (32 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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