Skip to content

Attempt to fix merge message issue #1495

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

Closed

Conversation

david-driscoll
Copy link
Contributor

This attempts to fix #1468, #1481.

This adds a new configuration value that effectively disables MergeMessageBaseVersionStrategy.

What I discovered in my testing is that if a merge message picks up a new version number, that will automatically become the latest the highest base version and then used in the next version calculation.

I feel like there could also be something added to the Merge Message strategy that looks at the branch configuration to determine the source branch, and ensure that it is a release branch (for gitflow).

@david-driscoll
Copy link
Contributor Author

cc @gep13 @dazinator @JakeGinnivan 😄

@gep13
Copy link
Member

gep13 commented Oct 18, 2018

@GitTools/developers what are your collective thoughts around this?

@asbjornu
Copy link
Member

@gep13: As I think #1487 might have an effect on how this is solved, I'd like to merge that and possibly #1488 first. I'd also appreciate if @david-driscoll could have a look at those pull requests and give us his thoughts on them. If there's no objections, I'd like to merge #1487 in a couple of days, as @Kieranties has been waiting a while for that now.

@gep13
Copy link
Member

gep13 commented Oct 19, 2018

@asbjornu I think that there might be some cross over between this PR and this one: #1507 as they both seem to be tackling a similar problem, but in a different way.

@konne
Copy link

konne commented Oct 19, 2018

@david-driscoll but I think to make the configuration more clear the commit-message should be move to the ignore.
like

ignore:
sha:

  • xxxxxx
  • yyyyyy
    messages: true

What do you think?

@asbjornu
Copy link
Member

@gep13: Indeed. I hope @david-driscoll and @konne can agree on an approach so we end up with one PR we can merge. Either way, I'd like #1487 merged first. 🙂

@konne
Copy link

konne commented Oct 19, 2018

@gep13 I have no issue to make one PR out of that. I need only your okay, that you want it from the maintaner perspective. I also like to get this solved asap.

@david-driscoll What is your feedback?

@konne
Copy link

konne commented Oct 24, 2018

@david-driscoll please give your feedback

@david-driscoll
Copy link
Contributor Author

Sorry didn't see the feedback earlier!

So I think both approaches add value, how they're configured and where they are configured is 🚲🏠 to me, so I don't really mind either way. As long as the blocker we're running into can be solved I'm happy. I'll defer to @konne's changes if he adds the additional filter for messages: false to the ignore settings in his PR, and we can close this one.

@konne
Copy link

konne commented Oct 26, 2018

@david-driscoll okay I will extend my PR. Please let your PR open until my is merged.

@gep13
Copy link
Member

gep13 commented Oct 29, 2018

@david-driscoll are you in a position to take this PR for a spin to validate that this works as expected for you? Thanks!

@asbjornu
Copy link
Member

Now that both #1487 and #1488 are merged, we should be good to merge this or #1507, but as I write in #1507 (comment), I'm missing some tests that verify the added feature. Since @konne has not replied, perhaps you would be up for writing those tests, @david-driscoll?

It might also be good to rethink the approach now that we have #1488 in place.

@asbjornu
Copy link
Member

This PR is so out of date now that this has to be reworked from the bottom up, possibly in a completely new way due to #1487 and #1488. I'm therefore closing this PR, but please submit a new one if this is still something you'd like to see in GitVersion.

@asbjornu asbjornu closed this Jun 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sudden jump in version with 4.0.0-beta0014
4 participants