-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Allow 'blacklisting' terms / limiting number of hits per commit #12
Comments
Hi, thank you for opening this issue - it's definitely interesting especially with projects using the git-flow. I will definitely have a look at possible enhancement/mitigation within the next 48 hours 👍 Just to clarify, the version bump should:
If there are any other requests let me know - I'll take care of it over the weekend :) |
@NicolasIRAGNE could you please check now with the latest version ( |
Thanks a lot, will test in a bit with my repository and compare results :-) |
Thank you so much - that was really helpful!
|
I think - and perhaps this should go into its own issue - it should be possible to have direct control on how the default incrementing works. Something like this: (just a quick draft of how I would imagine it) #Choose to process either merge commit OR all the commits instead. Useful in case of just wanting to increment the default branch everytime a MR is accepted.
only-merge-commits: true
auto-increment:
default: Minor
base: 'develop'
branches:
- feature: Minor
- fix: Patch
- patch: Patch
- refactor: Major
- test: None Something like this would allow the following behavior:
And if we use only-merge-commits: false Then the rules apply to every commit except the merge commit instead, with the wording rule still applying. However, these are not easy changes and this perhaps goes beyond the scope of your project as these use cases are not what you were going for in the first place. I have switched tools at the moment because we had an urgent need in production but will still watch development because this could be an interesting lightweight alternative to the more complex tools. Thank you for taking the time to discuss :-) I would gladly help with some testing if you update it. |
It's a really good idea but will require a bit of code reshuffling - yet, I am happy to take care of it but definitely not this weekend :) |
Oh, interesting, I thought strict mode meant stricter matching on the wording (like disabling fuzzy). |
No, it essentially disables the automatic incrementation on every patch and triggers increments only if matched strings are detected. I'll make it more clear in the documentation :) |
Hi, so just to be clear. Setting strict to false will auto increment patch if no keyword matches in the commit message? |
@joonalaine yes, exactly. For example - if your commit brings some changes, and your pipeline builds the docker container which you'd like to test - you can test it whilst making sure ( different tag due to bumped patch ) that it is what you wanted to test. |
Thanks! |
Hello,
I am trying to set up this tool for a project because of its simplicity. However, I could'nt figure out if there was a way to blacklist terms.
For example, I wanted to have something such as this:
However, when I want to add features to the project, I name my branch
feature/xxxx
and then merge it into develop, which will trigger the version bump, in addition to the commits. Even worse, I am using gitlab merge requests feature and the merge commits often contain text from previous commits. This results in even the smallest changes bumping the version by a disproportionate amout every time.This is making the tool close to unusable for me and I think this is a quite common workflow.
What do you think ? What is the expected workflow ?
The text was updated successfully, but these errors were encountered: