MarcoIeni / release-plz

Publish Rust crates from CI with a Release PR.
https://release-plz.ieni.dev
Apache License 2.0
792 stars 74 forks source link

allow to modify the logic of next_version to add more prefixes that will bump versions #1510

Closed MeitarR closed 3 months ago

MeitarR commented 3 months ago

Motivations

Our project uses conventional commits, and with git-cliff, it's awesome. now we added a new prefix (let's say abc) that should also bump the minor (and it makes sense in the context of the repo).

now we can't do that because it's hard coded in the repo that only feat and breaking change will bump the minor.

Solution

I can see how it can be solved by receiving a regex for major and minor that will check against the Custom conventional_commit_parser::commit::CommitType

Alternatives

Additional context

I would like this so git-cliff will be able to configure the regex from its config and then I could use it in my repo to release and bump automatically

MarcoIeni commented 3 months ago

PR welcome 👍 Please add tests and docs, too.