Skip to content

fix(release): keep Release-As over child bumps on derived targets - #346

Merged
ValentinLutz merged 1 commit into
monkescience:mainfrom
nateships:fix/release-as-derived-child-bump
Nov 2, 2026
Merged

ValentinLutz merged 1 commit into
monkescience:mainfrom
nateships:fix/release-as-derived-child-bump

Conversation

@nateships

Copy link
Copy Markdown
Contributor

Split from #335 (commit 3). I removed the calver test, because it needs calver Release-As.

What

A derived target now keeps its Release-As version when an included target has a higher bump.

Before this fix, yeet used the bump from the included target and ignored the footer.

Example

Latest tags are v1.0.0 and api-v1.0.0. root is a derived target that includes api. The commits are:

  • feat: in services/api
  • chore: in root with Release-As: 1.0.1
Target Before the fix After the fix
api 1.1.0 1.1.0
root 1.1.0 1.0.1

A path target already works this way. This fix makes derived targets work the same way.

Impact

  • User-visible: this changes semver derived targets. If a repository expects the child bump to win, it now gets the Release-As version.
  • Security: none.

Tests

A new case in TestReleaseAsFooter covers this example. The test fails without the fix.

A derived target with a Release-As footer in its own commits lost the
requested version when an included target had a higher bump. yeet then
planned the next version from the child bump and ignored the footer.

yeet now plans the derived target again with the higher bump and keeps
the requested version. This changes semver derived targets: with
Release-As: 1.0.1 and a child feature, the derived target now releases
1.0.1 instead of 1.1.0, as a path target already does.
@ValentinLutz
ValentinLutz merged commit bf8acd0 into monkescience:main Nov 2, 2026
13 checks passed
@monkescience-yeet monkescience-yeet Bot mentioned this pull request Nov 2, 2026
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.

2 participants