PR is not calculating patch based on inherit prop #4227
Unanswered
facusantillo
asked this question in
Q&A
Replies: 1 comment 24 replies
-
So you have multiple branches which can be used for inheriting. In your case it is:
GitVersion calculates for all branches (it can inherit from) the version number and uses the highest number. branches:
pull-request:
increment: Inherit
source-branches:
- develop
- main
- release
- feature
- hotfix
... Hope that makes sense. |
Beta Was this translation helpful? Give feedback.
24 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This is the following scenario, and I'm not sure if this is correct or it's a bug.
I have a Main branch with tag 1.2.0
I create from that tag a release branch: release/1.2.0
I create a hotfix branch from the release branch: hotfix/1.2.0_fixes
At this point, I have 3 branches and 1 tag.
I commit to the hotfix branch and create a PR targeting the release branch. The version should be calculated as 1.2.1-prXXXXX.XX but the version is being calculated as 1.3.0-prXXXXX.XX
Here is my yaml:
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions