Skip to content

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

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

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