mergeable
mergeable copied to clipboard
Despite the regex expression in the yml file is `case-sensitive`, the CI handles the PR title as `case-insensitive`
Despite the regex expression in the yml file is case-sensitive, the CI handles the PR title as case-insensitive
mergeable.yml
must_include:
regex: ^((DEV)-[\d]{1,6})\:.+$
message: 'Add JIRA issue key'
Both PR titles successes:
- DEV-000: random title
- Dev-000: random title
Is this expected to be case-insensitive?
@yukinoda we use https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp to test regex. maybe it requires extra flag to make it case-sensitive
Looking trough the code it apperantly forces the i regex flag (meaning case insensitive).
The solution is to add
regex_flag: "none"