fix(queue): honor paused autoreview markers#4091
Conversation
|
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 #4091 +/- ##
=======================================
Coverage 93.63% 93.63%
=======================================
Files 384 384
Lines 35827 35831 +4
Branches 13150 13151 +1
=======================================
+ Hits 33548 33552 +4
Misses 1618 1618
Partials 661 661
🚀 New features to boost your workflow:
|
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-08 00:14:43 UTC
⏸️ Suggested Action - Manual Review
Review summary Nits — 5 non-blocking
Concerns raised — review before merging
Review context
Contributor next steps
Signal definitions
🟩 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 Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Motivation
@gittensory pausecommand records a per-PRgithub_app.autoreview_pausedaudit marker but the scheduled/webhook re-review paths continued to run the auto-review publication step, undermining the pause intent.Description
reReviewStoredPullRequestwhen a completedgithub_app.autoreview_pausedmarker exists by calling a newhasAutoreviewPausedMarkerhelper.hasAutoreviewPausedMarker(env, repoFullName, prNumber)which reads the latestgithub_app.autoreview_pausedcompletedaudit row andfail-opens on DB lookup errors.test/unit/queue.test.tsthat seeds a pause audit event and asserts that anagent-regate-prrun does not call the AI, post a PR comment, or write a check run.Testing
npx vitest run test/unit/queue.test.ts -t "autoreview pause marker", and the test passed (the regression test succeeded and other tests were skipped as expected).npm run typecheck, which completed successfully.git diff --checkduring the change cycle with no issues reported.Codex Task