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 agree that the behavior you are describing here is not intuitive. If you like please fix this and create a pull request for it:
Change the release and hotfix regex in GitFlowConfigurationBuilder and GitHubFlowConfigurationBuilder to support branch name override natively (e.g. label: '({captureGroups.SubBranchName} ?? "beta").ToLower()')
Change the workflow resources in src\GitVersion.Configuration\Workflows
Remove branchNameOverride parameter in ConfigurationExtensions::GetBranchSpecificLabel
Change the logic in GetBranchSpecificLabel and use dynamic string interpolation
This issue has been automatically marked as stale because it has not had recent activity. After 30 days from now, it will be closed if no further activity occurs.
Prerequisites
GitVersion package
GitVersion.Tool
GitVersion version
6.0.0-beta.7-alpine.3.18-7.0
Operating system
Linux
What are you seeing?
I am seeing GitVersion not properly do regex capture grouping and returning invalid versions/labels.
Example:
What is expected?
I would expect
{SubBranchName}
to be a proper value:Example:
Steps to Reproduce
mode: ContinuousDelivery
release
branch configuration to look like:release/0.2.0
Observe the correct output:
release/0.2.0-bravo
Observe the incorrect output:
RepositoryFixture Test
No response
Output log or link to your CI build (if appropriate).
No response
The text was updated successfully, but these errors were encountered: