Feature request: protected branch full regex support

It doesn’t seem possible to do an exact match for the protected branch pattern today, which means that a protected branch rule for “foo” will match “foo-bar”.

In general, Ruby does have full regex support, so I’m not sure why the protected branch configuration doesn’t just support full regex.

But even if full regex support can’t be done, would it be possible to add some toggle for “this pattern should match the full branch name”? We protect all release branches of the form [0-9].[0-9]*, but we would like to avoid capturing 1.0-misc-feature-work.

Edit: the pattern match is already an exact match; the * operator is a glob *, not a regex *. But I’m leaving this up as an official request for full regex support (I can’t find any other open issues)

3 Likes