-
Notifications
You must be signed in to change notification settings - Fork 653
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
Add feature ignore regex for commit messages #1507
Conversation
this fixes #1495 |
@arturcic this is my first PR in your repo, please give me a feedback if I miss something or on the architecture. |
@gep13 thanks, I fixed it |
@gep13 yes, but i see the big disadvantage of #1495 that you have to complete disable all merge message version updates, but we still want to use this cool feature for our PRs. |
@konne gotcha. So, do you think that we need both approaches? To completely disable the feature, and also the ability to essentially filter which messages are being used? |
@gep13 yes, but I think to make the configuration more clear the commit-message should be also move to the ignore. ignore: |
@konne can you please comment on that PR with your suggestion? Thanks |
@gep13 I still waiting for a feedback in the other PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (not that it means anything 😄)
@gep13 any chance you have a moment to look at this one? Thanks! |
@gep13 any change that we get this merge this year? PLEASE |
@asbjornu #1541 should also solve a lot of issues that are comming from the changed version strategy in 4.0. This PR could also used to solve theese issues, but I think it enhance much more the ignore strategy from an simple sha strategy. In my eyes a possibility to just add an regex is nothing that should not be in gitversiontask. |
@asbjornu ignore:
messages: true This is in my PR implemented in the way use-merge-message-version: true I can easily change it to your syntax. This PR also contains the possibility to define an regex in the ignore section and this ignore:
regex: 'ignoreMatch' |
@konne, thanks for the summary. After a bit more thought, perhaps this syntax is going to be more consistent with the existing configuration syntax and is perhaps even more intuitive? merge-message-version: Enabled
ignore:
merge-message: '<message regex>' It follows the established pattern of I assume that when you set Thoughts? |
Yes If you accept this, I will rewrite the PR to fill this requirements. |
@konne: Awesome! Yes please. 😃 🙏 |
@asbjornu sorry I get crazy, I just made an fetch to you upstream master, I don't get this solution compiled with my VS2017 and so I tried to just change the PR, but also the only build doesn't compile and I can not debug the root cause. |
That's ok, @konne. I've created #1609 to rebase and resolve the conflicts. However, I notice now that there's no tests that verify the behavior of the added feature. Could you please add at least one test to this PR and I'll pull it into #1609 after? If you'd like, you can base your development on my rebased branch. You can do that as follows: git remote add asbjornu [email protected]:asbjornu/GitVersion
git fetch asbjornu
git checkout -b feature/ignore-merge-messages asbjornu/feature/ignore-merge-messages You should now have a local branch called git push --set-upstream origin feature/ignore-merge-messages |
We really like to use automatic dependency nuget tools like dependabot.
Since Version 4.0.0-beta 12 the pull request are used to calculate the
version for this packages. This makes no sense for example:
Merge pull request #yy from xxx/dependabot/nuget/src/development/NLog-4.5.9
Because this message contains the new NLog Version and has nothing todo with the
Version of the current package.
The new filter allows to define a general regular expression to for example ignore all
commit messages that contains /dependabot/nuget/