Potential problem with branch name push rule regex example
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Problem to solve
Regex example for the branch names section of push rules seems to use potentially incorrect syntax. The example has (feature|hotfix)\/*
which reads to me as can lead with either feature
or hotfix
followed by zero of more /
. I feel like the better/correct example regex would be (feature|hotfix)\/.*
, which would be seen as lead with either feature
or hotfix
then followed by /
then zero or more of any character. If the original regex is intentional, some tips on why would be helpful.
Further details
Proposal
If this is a mistake rather than an intentional choice, updating the example with all relevant components in the project would address the issue.
Who can address the issue
Anyone familiar with the push rules feature and re2.