You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched issues to ensure it has not already been reported
GitVersion package
AzureDevops task
GitVersion version
6.0.5
Operating system
Linux
What are you seeing?
GitVersion is incrementing CommitsSinceVersionSource from latest tag. The variable is being incremented by all the commits, that were merged, full history is being taken.
Example of how it is working right now:
Lets say our current version calculated on develop branch is 1.1.0-dev.20, where 20 is the CommitsSinceVersionSource.
So if a pull request is merged and it contains 10 commits, version calculated for this branch would be 1.1.0-dev.31. Because it includes the whole history.
What is expected?
I would like to increment version by only First Parent commits count.
Example of what I want to achieve:
Lets say our current version calculated on develop branch is 1.1.0-dev.20, where 20 is the CommitsSinceVersionSource.
So if a pull request is merged and it contains 10 commits, I want my version to be 1.1.0-dev.21.
What is the best way to achieve it?
Steps to Reproduce
Setup repo and create pull requests to develop branch, that will have below GitVersion.yml configuration:
Prerequisites
GitVersion package
AzureDevops task
GitVersion version
6.0.5
Operating system
Linux
What are you seeing?
GitVersion is incrementing
CommitsSinceVersionSource
from latest tag. The variable is being incremented by all the commits, that were merged, full history is being taken.Example of how it is working right now:
Lets say our current version calculated on
develop
branch is1.1.0-dev.20
, where 20 is theCommitsSinceVersionSource
.So if a pull request is merged and it contains 10 commits, version calculated for this branch would be
1.1.0-dev.31
. Because it includes the whole history.What is expected?
I would like to increment version by only
First Parent
commits count.Example of what I want to achieve:
Lets say our current version calculated on
develop
branch is1.1.0-dev.20
, where 20 is theCommitsSinceVersionSource
.So if a pull request is merged and it contains 10 commits, I want my version to be
1.1.0-dev.21
.What is the best way to achieve it?
Steps to Reproduce
Setup repo and create pull requests to
develop
branch, that will have below GitVersion.yml configuration:RepositoryFixture Test
No response
Output log or link to your CI build (if appropriate).
The text was updated successfully, but these errors were encountered: