Need help understanding branching, merging and config #4235
Replies: 1 comment
-
I think this answers your question: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm new to GitVersion and still trying to understand how to properly configure it for my scenario.
We basically have a
master
branch that serves as our current release branch. For any changes, we create a new branch frommaster
, make changes and commit. Finally, we merge that branch back intomaster
.I haven't been able to get things to successfully work as I expect. I'm convinced its because I lack understanding of how to properly configure GitVersion for what I'm trying to accomplish.
From everything I've read, there seems to be a few different ways to affect the SemVer that gets generated during a build.
feature-
ormajor-
, etc.+semver:minor
, etc.v1.0.1
to a commit.Where I get a little confused is how things are handled when merging a branch back into
master
.Here is an example of what I'm expecting to happen:
v1.0.0
feature-Feature1
.feature-Feature1
branch.feature-Feature1
branch to remote (Azure Devops).1.1.0-Feature1.1
(expected based on my understanding)feature-Feature1
branch intomaster
on remote (Azure Devops) (with Azure's default merge message)1.0.1
(not expected, was expecting1.1.0
)As you can see, I expected a different result in step 7 given that the branch I merged into master was a feature branch.
Questions
GitHubFlow/v1
workflow orTrunkBased/preview1
? (I've tried both and I haven't seen any difference).minor
version of the master branch. Is my expectation wrong?+semver:minor
, this does seem to increment theminor
version number during the build ofmaster
. Is this required or are there other ways to affect this?Beta Was this translation helpful? Give feedback.
All reactions