Skip to content

[ISSUE]: Incorrect label placeholders should not throw exception #5026

Closed

Description

@robertcoltheart

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.8.1

Operating system

N/A

What are you seeing?

As per #5021, we should not throw an exception when placeholders are not found, and return the label as-is. Behavior to change in 7.x but this is a 6.x regression.

What is expected?

Bad labels with missing placeholders should not throw

Steps to Reproduce

Create a label config with {BranchName} and do not capture this value in the regex.

RepositoryFixture Test

No response

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

Activity

  1. added this to the 6.x milestone on Jul 9, 2026
  2. HHobeck commented on Jul 10, 2026

    @HHobeck
    Contributor

    Hi there.

    @arturcic, quick question regarding the repository structure: Is the next/v7 branch intended to be the release branch for version 7.0.0? I noticed it doesn't follow the naming convention expected by the GitFlow/v1 workflow. Can you provide a branch with name release/7.0.0?

    @robertcoltheart May I kindly ask you to ensure the discussed behaviour in version in the 7.0.0 branch?

    Cheers
    Hardy

  3. robertcoltheart commented on Jul 10, 2026

    @robertcoltheart
    ContributorAuthor

    Sure, let me know once the branch is created and I can submit a PR.

  4. arturcic commented on Jul 10, 2026

    @arturcic
    Member

    @HHobeck for now next/v7 branch is intended to move the work forward while closing the v6 series. 6.8.2 or whichever will be in the v6.8.x will be the last in v6. After that next/v7 will be merged into main and the development on v7 will continue on main. I needed a temporary long running branch that will contain the ongoing refactoring done for v7 while v6 is finalized. Easier to rebase on the recent change on main.

  5. arturcic commented on Jul 10, 2026

    @arturcic
    Member

    Sure, let me know once the branch is created and I can submit a PR.

    @robertcoltheart create from/and target the next/v7 branch. That will get merged into main soon.

  6. modified the milestones: 6.x, 6.8.2 on Jul 10, 2026
  7. github-actions commented on Jul 10, 2026

    @github-actions

    🎉 This issue has been resolved in version 6.8.2 🎉
    The release is available on:

    Your GitReleaseManager bot 📦🚀

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions