Skip to content

fix(web): don't offer merge when GitHub blocks it - #414

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-11029-dont-offer-merge-when-github-blocks-it
Oct 21, 2026
Merged

TheGreatAxios merged 1 commit into
mainfrom
cl-11029-dont-offer-merge-when-github-blocks-it

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

The portal offered Merge on PRs that GitHub reports as mergeable: true but mergeable_state: blocked, for example when a ruleset requires a review.

  • Hub PR details read GitHub's reviewDecision (GraphQL) only when the state is blocked. A failed read leaves it null, and details still load.
  • The reading pane and PR page use one merge gate. The status line and badge give the reason: a required review, behind base, the branch's rules, or Bitbucket's merge checks (mergeVetoes).
  • A refused merge shows the host's reason. The shared GitHub request helper appends GitHub's message.
  • User Manual updated.

Out of scope: the inbox list still groups a blocked PR under Merge. CL-11030 covers the list.

Verified: reproduced on corbitsdev/workbench#1133 (blocked, REVIEW_REQUIRED), and a clean PR still offers Merge. Ran bun run check, lint and bun run test (all pass). New hub tests cover the GraphQL call only when blocked, a failed read, and the refusal text.

Closes CL-11029

@linear-code

linear-code Bot commented Oct 21, 2026

Copy link
Copy Markdown

CL-11029

@TheGreatAxios
TheGreatAxios marked this pull request as ready for review October 21, 2026 00:21
@corbits-triage

corbits-triage Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Triage: Pass

No changes needed from you. A maintainer will review this pull request.

Triage will approve.
Waiting on a maintainer to approve: request review.

@TheGreatAxios
TheGreatAxios force-pushed the cl-11029-dont-offer-merge-when-github-blocks-it branch from fa9f905 to b120823 Compare October 21, 2026 00:26
@TheGreatAxios
TheGreatAxios merged commit 47a6f22 into main Oct 21, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant