I'm using the following config and mergeable errors our while processing the regex. The regex works fine for me in my regex validator.
version: 2
mergeable:
- when: pull_request.*
filter:
- do: repository
name:
must_exclude:
regex: my-repo
- do: author
must_exclude:
regex: dependabot[bot]
validate:
- do: description
and:
- no_empty:
enabled: true
message: Please provide a description
- or:
- and:
- must_include:
regex: '^(?s)(?!(.*\[x]){2}).*\[x]'
regex_flag: none
message: Only 1 checkbox must be checked to dictate if it's a Patch, Minor or Major change.
This ensures that only a single item is checked in the description after opening a PR. It should fail if more than 2 checkboxes are checked.
Description Contents
### Description
Provide as much detail as possible.
Ticket: SE or CM #
### Only Check One
- [] Patch - Fix typo or broken logic
- [] Minor - New features or minor changes to configuration
- [] Major - Breaking changes that will require a refactor of composition code
Hello,
I'm using the following config and mergeable errors our while processing the regex. The regex works fine for me in my regex validator.
This ensures that only a single item is checked in the description after opening a PR. It should fail if more than 2 checkboxes are checked.
Description Contents
Here is a link to my Regex validation https://regex101.com/r/NkrHhq/1