Skip to content

Adjust bundle-amend behavior to support explicit resolve and no-resolve options#2669

Merged
cotti merged 6 commits intomainfrom
fix/bundle_amend
Feb 13, 2026
Merged

Adjust bundle-amend behavior to support explicit resolve and no-resolve options#2669
cotti merged 6 commits intomainfrom
fix/bundle_amend

Conversation

@cotti
Copy link
Contributor

@cotti cotti commented Feb 9, 2026

Fixes #419

Summary

Previously, changelog bundle-amend always produced unresolved amend files (file references only), regardless of whether the original bundle was resolved. This meant amend files couldn't be copied to another repo (e.g. for Cloud Serverless release notes) because they lacked the inline changelog data that the resolved parent bundle had - the consuming repo would need access to the original changelog files to render them.

Changes

  • The command now automatically infers whether to resolve entries by reading the original bundle. If the original bundle has resolved entries (with inline title, type, etc.), the amend file is also resolved, making it fully portable.
  • Added --no-resolve flag (mirroring bundle) so users can explicitly override the inferred behaviour. --resolve / --no-resolve / neither now maps to the three-state logic: force on, force off, or infer from bundle.
  • Updated Changelog documentation with CLI help, resolve behaviour explanation, and examples.

@cotti cotti self-assigned this Feb 9, 2026
@cotti cotti added the fix label Feb 9, 2026
@cotti cotti requested review from a team as code owners February 9, 2026 19:49
@cotti cotti requested a review from Mpdreamz February 9, 2026 19:49
Copy link
Contributor

@lcawl lcawl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested against elastic/elasticsearch#140795 and the amended bundles are now successfully resolved, thanks!

I shifted some of the details from changelog.md to changelog-bundle-amend.md since IMO the latter should be higher-level summary of the workflow. Hope that's okay!

@github-actions
Copy link

github-actions bot commented Feb 9, 2026

🔍 Preview links for changed docs

lcawl and others added 2 commits February 11, 2026 14:05
# Conflicts:
#	docs/cli/release/changelog-bundle-amend.md
#	src/tooling/docs-builder/Commands/ChangelogCommand.cs
@cotti cotti merged commit c442ecd into main Feb 13, 2026
30 checks passed
@cotti cotti deleted the fix/bundle_amend branch February 13, 2026 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants