Unexpected value of CommitsSinceVersionSource in certain branch setup #4759
Unanswered
DmitrySenin
asked this question in
Q&A
Replies: 0 comments
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.
-
In one of my projects, I have the following workflow:
dev,qa,mainare in usedev, i.e. all features are merged indevfirstdevgets merged intoqaqawe deploy to our QA environment and verify the software thereqais merged intomainand we releaseI've come up with the following config for GitVersion 6
Long story short, before merging
devintoqa, we tag the last commit ondevwith the current version and then merge. It all works just fine and as we want. A small issue is observed inqawith regards toCommitsSinceVersionSource(andFullSemVereffectively) which creates confusion.Here is an example
dev) will produce 1.5.0-alpha.1 as expectedmain) will produce 1.4.0 as expectedqa) will produce 1.4.0-beta.8:1.4.0-betais expected but8is NOT expected here. I expect to have 1.4.0-beta.1 because it is the first commit of 1.4.0 inqaI understand why it works this way: GitVersion runs
git log 23c23a9..a3d45fbunder the hood which essentially produces all commits onqafroma3d45fbbackwards but still it's counter-intuitive. Runninggit log 23c23a9..a3d45fb --ancestry-pathwill produce what I'm after -1I'm wondering if anyone has come across something similar and if there is a workaround for this? And if it makes sense to introduce an ability to achieve the more intuitive behaviour?
Beta Was this translation helpful? Give feedback.
All reactions