Commit 6be902a
fix(automation): incident responder missing Sentry issues (#125)
Three bugs caused the Incident Responder to find zero issues on every run:
1. The search query used "errors" which the search_issues tool translated
into issueCategory:error, filtering out issues categorized as default
or frontend.
2. The 15-minute lastSeen window created a race condition with the
15-minute cron interval — one-shot errors had exactly one window
to be caught.
3. No deduplication — widening the window without tracking already-triaged
issues would cause re-processing on every run.
Changed to "unresolved issues first seen in the last 24 hours" and added
a GitHub issue lookup step to skip already-triaged Sentry issues.
Co-authored-by: Ona <no-reply@ona.com>1 parent 0deb93b commit 6be902a
1 file changed
Lines changed: 11 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
29 | 35 | | |
30 | 36 | | |
31 | 37 | | |
| |||
0 commit comments