When creating branch patterns in default reviewers, whitespace characters are permitted.
- Create a new default reviewer rule
- Create a branch pattern for either the target or source branch that contains a whitespace character
A validation error should indicate whitespace is not permitted in branch patterns (as they are forbidden in git branches and will never match anything)
The rule is created successfully.
If whitespace precedes the rest of the branch pattern (e.g. " some-branch"), the whitespace is trimmed from the UI, which makes the pattern appear valid (see screenshot). As the branch pattern does not match any branches, the rule will not apply default reviewers, even if the branch appears to match the pattern in the UI.
The whitespace-containing rule must be deleted and recreated.