Skip to content

Make major-bump labelling resilient so it can't block merges#3

Merged
bbkrr merged 1 commit into
mainfrom
fix/major-bump-label-resilient
Jul 3, 2026
Merged

Make major-bump labelling resilient so it can't block merges#3
bbkrr merged 1 commit into
mainfrom
fix/major-bump-label-resilient

Conversation

@bbkrr

@bbkrr bbkrr commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

What

Make the major-bump labelling step in the shared Dependabot Auto-Merge workflow resilient:

  • create the needs-manual-review label if the repo doesn't have it, and
  • guard both label commands with || true so they can never fail the job.

Why

For a major bump the workflow comments + labels the PR for manual review (it does not auto-merge). But the label step ran gh pr edit --add-label "needs-manual-review", and most repos don't have that label — so the command errored and failed the whole Dependabot Auto-Merge job.

Since that job is a required check (org dependabot-automerge ruleset), the failure blocked the PR from being merged even after a human approved it — the opposite of the intended "leave it for manual review" behaviour. Seen on realrate/EBA#93 (structlog 21.5→26.1.0): comment posted, label step failed, PR stuck BLOCKED despite human approval + green tests.

Effect

Major bumps now reliably get commented + labelled and remain mergeable by a human after review. Patch/minor behaviour is unchanged.

Part of realrate/RealRate-Private#2148.

The 'Add label to major bump PR' step ran 'gh pr edit --add-label
needs-manual-review'. In any repo lacking that label the step errored,
which FAILED the whole Dependabot Auto-Merge job. Because that job is a
required check (org ruleset), a major bump then couldn't be merged even
after human approval (e.g. realrate/EBA#93).

Create the label if missing and guard both label commands with '|| true'
so a labelling hiccup can never block a human from merging a reviewed
major bump.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@bbkrr bbkrr merged commit de70713 into main Jul 3, 2026
1 check passed
@bbkrr bbkrr deleted the fix/major-bump-label-resilient branch July 3, 2026 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant