Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] squash bump commits to tidy commit history #402

Open
holmesb opened this issue Jul 10, 2024 · 0 comments
Open

[FEATURE] squash bump commits to tidy commit history #402

holmesb opened this issue Jul 10, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@holmesb
Copy link

holmesb commented Jul 10, 2024

Is your feature request related to a problem? Please describe.
Bump commits (chore(version): bump packages) for every change pollutes the commit history. This is especially true for monorepos with a large number of packages. But without bump commits (disable_bump_commit = true), the change logs aren't committed.

Describe the solution you'd like
Instead of a bump commit for every change, the cog bump --auto command squashes the bump commit it creates into the preceding one. This would have to happen before tagging occurs because the the original commit's hash will change. I propose a new configuration option: squash_bump_commit = true\false, with the default being false. Has no effect if disable_bump_commit = true.

Describe alternatives you've considered
Scripting using post_bump_hooks, but this seems high effort and something useful enough to be built into Cocogitto.

@holmesb holmesb added the enhancement New feature or request label Jul 10, 2024
@holmesb holmesb changed the title [FEATURE] squash bump commits [FEATURE] squash bump commits to tidy commit history Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants