Skip to content

[ISSUE]: The count of (GitVersion.PreReleaseNumber) is reset to 0 in the branch Develop without any reason. #4100

@kornitdevops

Description

@kornitdevops

Prerequisites

  • I have written a descriptive issue title
  • I have searched issues to ensure it has not already been reported

GitVersion package

AzureDevops task

GitVersion version

5.x

Operating system

Windows

What are you seeing?

The count of (GitVersion.PreReleaseNumber) is reset to 0 in the branch Develop without any reason.

What is expected?

it will continue to count above 4.5.0.47, instead its downgraded to 4.5.0.2

Steps to Reproduce

just merge "personal/branch" to the Develop branch with 1 commit
Screenshot 2024-07-16 164345

RepositoryFixture Test

No response

Output log or link to your CI build (if appropriate).

gitvesion.yml:

        mode: ContinuousDeployment
        tag-prefix: '[vV]'
        legacy-semver-padding: 5
        continuous-delivery-fallback-tag: '' # ci
        major-version-bump-message: '\+semver:\s?(breaking|major)'
        minor-version-bump-message: '\+semver:\s?(feature|minor)'
        patch-version-bump-message: '\+semver:\s?(fix|patch)'
        no-bump-message: '\+semver:\s?(none|skip)'
        commit-message-incrementing: Enabled
        branches:
          main:
            regex: ^main$
            tag: ''
            increment: None
            prevent-increment-of-merged-branch-version: true
            source-branches:
            - develop
            - release
            tracks-release-branches: false
            is-release-branch: false
            is-mainline: true
          develop:
            regex: ^develop$
            tag: dev
            increment: Minor
            prevent-increment-of-merged-branch-version: true
            tracks-release-branches: true
            track-merge-target: true
          release:
            regex: ^release?[/-]\d.\d.\d$
            tag: release
            increment: Inherit
            prevent-increment-of-merged-branch-version: true
            source-branches:
            - develop
            is-release-branch: true
          feature:
            regex: ^feature[/-]
            tag: f-{BranchName}
            increment: Inherit
            prevent-increment-of-merged-branch-version: true
            source-branches:
            - develop
          pull-request:
            tag: '' # PullRequest
            increment: Inherit
            prevent-increment-of-merged-branch-version: true
            tag-number-pattern: '[/-](?<number>\d+)'
            regex: ^(pull|pull\-requests|pr)[/-]
            source-branches:
            - develop
            - main
            - release
            - feature
            - hotfix
            tracks-release-branches: false
            is-release-branch: false
            is-mainline: false
          hotfix:
            regex: ^hotfix[/-]
            tag: h-{BranchName}
            increment: Patch
            prevent-increment-of-merged-branch-version: true
            source-branches:
            - main
            tracks-release-branches: false
            is-release-branch: false
            is-mainline: false
        ignore:
          sha: []
        commit-date-format: dd-MM-yyyy
        merge-message-formats: {}
        update-build-number: true


pipeline 4.5.00.47:
 47 commits found between c3aeaad Increment Version ***NO_CI*** and f2d3294 Merged PR 23489: 
pipeline 4.5.0.2:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions