mbarkhau / bumpver

BumpVer: Automatic Versioning
https://github.com/mbarkhau/bumpver
MIT License
199 stars 36 forks source link

Allow personalized commit messages on update cli command #162

Closed ricoms closed 3 years ago

ricoms commented 3 years ago

I propose user can define commit message on command line interface when running bumpver update:

goal is to have something like below:


poetry run bumpver update -f -t final --commit-message "[final-version] {old_version} -> {new_version}"
mbarkhau commented 3 years ago

I'm guessing you are aware of this, I just want to be sure: There is the commit_message configuration option.

Is the idea here, to be able to override the configured option (or the default) via the cli?

ricoms commented 3 years ago

Yes. I'm aware of that, through config file I can define a single commit message. For my use-case I want to provide different commit messages on different stages of versioning. I pretend to use those commit messages on CI/CD pipelines.

mbarkhau commented 3 years ago

Doc update: https://github.com/mbarkhau/bumpver#custom-commit-message

Released with bumpver==2021.1113.

Cheers