Skip to content

fix: scope commit and changelog inference to module in bump auto --module#261

Merged
indaco merged 2 commits intomainfrom
fix/bump-auto-module-scoped-inference
Apr 6, 2026
Merged

fix: scope commit and changelog inference to module in bump auto --module#261
indaco merged 2 commits intomainfrom
fix/bump-auto-module-scoped-inference

Conversation

@indaco
Copy link
Copy Markdown
Owner

@indaco indaco commented Apr 6, 2026

Description

When running sley bump auto --module <module-name>, both commit parsing and changelog generation used global (unscoped) git operations, causing:

  • Wrong bump type: getLastTag() returned the most recent global tag (from a different module), yielding zero commits and falling back to patch.
  • Missing changelog: the standalone GetLatestTag() found the wrong tag, producing an empty commit range; GenerateForVersion returned nil without writing, but the caller printed a success message unconditionally.

Related Issue

  • None

Notes for Reviewers

  • Single-module mode passes empty strings (no behavioral change)

@indaco indaco merged commit d14181c into main Apr 6, 2026
7 checks passed
@indaco indaco deleted the fix/bump-auto-module-scoped-inference branch April 6, 2026 21:56
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