bitbucket-pullrequest-builder-plugin icon indicating copy to clipboard operation
bitbucket-pullrequest-builder-plugin copied to clipboard

Bitbucket Pull Requests Builder BranchesFilter asterisk issue

Open levihinzgen opened this issue 1 year ago • 0 comments

The BranchesFilter checks for asterisk ("*") anywhere in the string using .contains("*"). However the instructions on the field also suggest using regular expressions. Using a regular expression that includes ".*" doesn't work, as it checks for any instance of "*" to mean "any".

Note that I'm not sure what would happen if .contains("*") was replaced with .equals("*"), the regex might not be set up to work with this, but at minimum this would make functionality less confusing. The documented usage of:

any pull requests applied for this project: any, * or empty string

...doesn't really suggest an asterisk anywhere in the string.

levihinzgen avatar Dec 14 '23 15:12 levihinzgen