Repository navigation
Hold semver-major Dependabot bumps for a human - #23
Merged
Merged
Conversation
The auto-merge job ran dependabot/fetch-metadata and never read its
update-type output, so a green gate merged a major exactly as readily as
a patch. The merge step now carries
if: steps.meta.outputs.update-type != 'version-update:semver-major'
on the step rather than the job, so the job still runs and reports green
and the major is simply left open for a person. Minor and patch are
unchanged.
.github/dependabot.yml also restricts the github-actions group to minor
and patch. fetch-metadata reports the HIGHEST semver change in a pull
request, so without that restriction one Actions major would refuse the
whole group and strand its patch and minor members. Actions majors now
arrive as individual pull requests.
Changes made here: metadata step already had id: meta; rewrote the rationale comment; added the gate to the merge step; restricted the github-actions group to minor/patch.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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.
Dependabot auto-merge in this repo merged any bump whose gate went green, including a semver-major:
dependabot/fetch-metadataran but itsupdate-typeoutput was never read.This gates the merge step on it:
The gate is on the step, not the job, so the job still runs and reports green — a major simply isn't merged, and the PR stays open for a person. Minor and patch keep merging themselves.
.github/dependabot.ymlalso gives thegithub-actionsgroupupdate-types: [minor, patch]. That matters becausefetch-metadatareports the highest semver change in a PR, so without it a grouped Actions PR containing one major would be refused as a whole and its patch/minor members would be stuck behind it. Actions majors now arrive as their own PRs.Applied fleet-wide across the 219 repositories whose auto-merge had no update-type gate. 34 repos already gated and were left alone; the
!=form is used everywhere for uniformity, because it fails closed if a new update-type is ever added.What changed here:
🤖 Generated with Claude Code