Repository navigation
[Fix] Pull requests become ready after an explicit draft request - #3442
Merged
Merged
Conversation
Contributor
|
No code issues found. See task Reviewed draft-intent persistence, explicit state updates and provider confirmations, promotion locking, association refreshes, migration consistency, regression coverage, and documentation. Current-head tests, lint, type checks, Knip, docs validation, Docker build, and CodeQL passed. Reviewed b438023 |
roomote-roomote
Bot
requested review from
brunobergher,
daniel-lxs and
mrubens
as code owners
October 9, 2026 05:32
This was referenced Oct 9, 2026
daniel-lxs
approved these changes
Oct 9, 2026
daniel-lxs
left a comment
Member
There was a problem hiding this comment.
Verified explicit draft holds and release through the actual PR writer and clean-review promotion path, with real persistence, locking and a controlled HTTP provider. Focused SDK/database checks and current CI pass at this head.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
An explicit draft-state update through Roomote now prevents clean-review automation from marking that PR ready. This includes an already-draft update that makes no remote change. A successful explicit ready update releases the hold; title, description, and base-branch refreshes preserve it.
The hold is persisted on tracked PR associations, applies across subsequent pushes/reviews, and is checked under the same provider-scoped lifecycle lock used by explicit state updates. Provider failures retain the hold, and ready updates must confirm the requested remote state before releasing it. Includes an additive, default-false migration and updated source-control documentation.
Why this change was made
Previously, the clean-review path only knew that Roomote created the PR. It could therefore override an explicit draft request, even immediately after a successful no-op draft update. Persisting that intent preserves the requested review workflow while retaining normal opt-in promotion for unheld PRs.
Impact
Explicit draft intent remains effective across clean reviews, multiple task associations, and new heads. The normal deployment-default draft creation and automatic promotion of unheld PRs remain unchanged. The hold records state updates made through Roomote; direct provider UI/CLI changes do not create a Roomote hold. No merge or approval behavior is added.
How it was tested
35201fbf): actual update/promotion helpers with real Postgres associations, real Redis, and controlled GitHub protocol reproduced an explicit no-op draft update being promoted to ready.b4380234a376146d271c9abe2857e3e8c9f6dd9e: 133 focused tests passed. Eight real persistence/ordering tests cover no-op intent, default promotion, explicit ready release, provider failure/retry, later associations/new heads, isolation, controlled in-flight ordering, and independent-process lock ownership, durable hold, release, cleanup, and recovery.pnpm lint:fast,pnpm check-types:fast,pnpm knip, and normal pre-push gates passed. Mintlify validation and broken-link checks passed.Checklist
[Fix],[Feat],[Improve],[Refactor],[Docs], or[Chore]followed by a user-facing descriptionpnpm lintandpnpm check-typespass locally — normal fast repository gates passed; full formatting-inclusive commands were not runpnpm changesetScreenshots
Genuine local Mintlify desktop rendering, opened and independently reviewed. This screenshot proves documentation copy/layout only; backend behavior is covered by the persistence/protocol tests above. The existing table-of-contents prior-section highlight is visible. No simulated UI state was used.
Related PRs