Skip to content

Never auto-merge a -major group, whatever the version numbers say - #8

Merged
Paururo merged 1 commit into
mainfrom
fix-automerge-major
Aug 22, 2026
Merged

Paururo merged 1 commit into
mainfrom
fix-automerge-major

Conversation

@Paururo

@Paururo Paururo commented Aug 22, 2026

Copy link
Copy Markdown
Member

Found by the automation on its first run rather than by reading it.

#4 bumped indicatif 0.17.9 to 0.18.6. It arrived in the cargo-major
group
, and fetch-metadata reported it as version-update:semver-minor:

group='cargo-major' update-type='version-update:semver-minor' -> may-merge=true

Cargo treats the minor component as the breaking one below 1.0, so Dependabot
grouped it correctly, and fetch-metadata, reading the version numbers alone,
called it a minor. The rule ORs the two clauses, so the minor reading overrode
the major group and the pull request queued itself for merge.

It did not actually merge, but only because auto-merge is switched off for this
repository. That is luck rather than the design working, and every 0.x
dependency would walk through the same gate. get_MNV has the same rule and so
presumably the same hole.

The fix

The group name is the reading that knows about 0.x semantics, so it overrules
rather than merely failing to grant. A -major group is now a veto, applied
last.

Decision matrix, checked against the case that got through:

group update-type may-merge
cargo-major semver-minor false (was true)
cargo-major semver-major false
cargo-routine semver-patch true
cargo-routine semver-minor true
docs-routine (none) true
(none) semver-patch true
(none) (none) false

Also makes the missing repository setting legible: gh pr merge --auto against
a repository with auto-merge disabled fails with a bare GraphQL error that reads
like a broken workflow. It now names the setting and where to turn it on.

Note

Allow auto-merge is still off under Settings → General. Until it is on, no
routine update can merge itself and this job will fail on each one, now with a
message saying why.

The first Dependabot run found the hole on day one. indicatif 0.17.9 ->
0.18.6 arrived in the `cargo-major` group and reported
`version-update:semver-minor`, because fetch-metadata reads the version
components and 0.17 -> 0.18 moves the minor one. Cargo treats that component
as the breaking one below 1.0, so Dependabot grouped it correctly; the two
clauses in the rule are ORed, so the minor reading overrode the major group
and the pull request queued itself for merge.

It did not merge, but only because auto-merge happens to be switched off for
the repository. That is luck, not the design working, and every 0.x
dependency would walk through the same gate.

The group name is the reading that knows about 0.x semantics, so it now
overrules rather than merely failing to grant: a `-major` group is a veto,
applied last. Checked against the case that got through and against the
routine and ungrouped cases, which are unaffected.

Also makes the missing repository setting legible. `gh pr merge --auto`
against a repository with auto-merge disabled fails with a bare GraphQL
error that reads like a broken workflow; it now names the setting and where
to turn it on.
@Paururo Paururo added the ci Workflows, automation and repository config label Aug 22, 2026
@Paururo
Paururo merged commit 4dbce24 into main Aug 22, 2026
11 checks passed
@Paururo
Paururo deleted the fix-automerge-major branch August 22, 2026 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Workflows, automation and repository config

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant