Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ISSUE]: GitVersion /showconfig confirm config is used but result is like if there's no config taken #4213

Open
2 tasks done
ebfortin opened this issue Sep 18, 2024 · 0 comments

Comments

@ebfortin
Copy link

ebfortin commented Sep 18, 2024

Prerequisites

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

GitVersion package

GitVersion.Tool

GitVersion version

6.0.2

Operating system

Windows

What are you seeing?

I run "dotnet GitVersion /showconfig /config GitVersion.yml" in the root directory of my project. The result confirm that the config file GitVersion.yml is used as I see that for the develop branch it should use the label 'unstable'.

branches:
  develop:
    mode: ContinuousDeployment
    label: unstable
    increment: Minor
    prevent-increment:
      of-merged-branch: false
      when-current-commit-tagged: false
    track-merge-target: true
    track-merge-message: true
    regex: ^dev(elop)?(ment)?$
    source-branches:
    - main
    is-source-branch-for: []
    tracks-release-branches: true
    is-release-branch: false
    is-main-branch: false
    pre-release-weight: 0

When I run "dotnet GitVersion /config GitVersion.yml" it use the generic configuration and doesn't use unstable for the develop branch. Instead it uses "Branch.develop".

  "BranchName": "develop",
  "BuildMetaData": null,
  "CommitDate": "2024-09-15",
  "CommitsSinceVersionSource": 250,
  "EscapedBranchName": "develop",
  "FullBuildMetaData": "Branch.develop.Sha.6c66efb22a24e2479f1462b3435155864c3b21f0",
  "FullSemVer": "0.1.0",
  "InformationalVersion": "0.1.0+Branch.develop.Sha.6c66efb22a24e2479f1462b3435155864c3b21f0",

What is expected?

The configuration should be used.

Steps to Reproduce

| dotnet GitVersion /showconfig /config GitVersion.yml
Develop branch has a "unstable" label configrued.

| dotnet GitVersion /config GitVersion.yml
GitVersion uses "Branch.develop" instead of "unstable".

RepositoryFixture Test

No response

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

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant