feat(api): add post-merge incident reporting for already-merged PRs - #5766
Conversation
Adds a reporting path for the case where an already-merged rented-loop PR is later found harmful: a repo-maintainer route (POST /v1/repos/:owner/:repo/pulls/:number/incident-reports) and an internal-operator route (POST /v1/app/incident-reports), both writing a queryable audit_events row via a shared recordPostMergeIncidentReport helper. Reports are keyed to the PR's repo#number targetKey, so the existing agent/audit-feed ?pull=N view already surfaces them back to maintainers with no separate table or read route needed. Closes JSONbored#5672
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5766 +/- ##
=======================================
Coverage 95.07% 95.07%
=======================================
Files 582 582
Lines 46183 46221 +38
Branches 14812 14823 +11
=======================================
+ Hits 43907 43945 +38
Misses 1516 1516
Partials 760 760
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
Tip 🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩 ✅ LoopOver review result - approve/merge recommendedReview updated: 2026-07-14 13:08:42 UTC
✅ Suggested Action - Approve/Merge
Review summary Nits — 5 non-blocking
Linked issue satisfactionAddressed Review context
Contributor next steps
Signal definitions
[BETA] Chat with GittensoryAsk Gittensory a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://gittensory.aethereal.dev/docs/gittensory-commands Visual preview
Click any thumbnail to open the full-size screenshot. Before = production · After = this PR's preview deploy. 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by LoopOver, a quiet PR intelligence layer for OSS maintainers.
|
Adds a reporting path for the case where an already-merged rented-loop
PR is later found harmful: a repo-maintainer route
(POST /v1/repos/:owner/:repo/pulls/:number/incident-reports) and an
internal-operator route (POST /v1/app/incident-reports), both writing
a queryable audit_events row via a shared recordPostMergeIncidentReport
helper. Reports are keyed to the PR's repo#number targetKey, so the
existing agent/audit-feed ?pull=N view already surfaces them back to
maintainers with no separate table or read route needed.
Closes #5672