The standard set of validation rules may not be enough for you. You can define your rules with conditional operators.
So, all custom conditions are described through the custom rule. You need to put your rules in the rules section.
Give branches a consistent naming style with this configuration.
rules:
custom:
- definition: "Branch must be in kebab-case"
rules:
sourceBranch:
isKebabCase: true
In this configuration, the "$all" keyword means that each label must be in a studly case.
rules:
custom:
- definition: "Drafts disabled on master"
rules:
labels:
$all:
isStudlyCase: true
This configuration causes a list of fixed bugs to be listed under the 2 level heading.
rules:
custom:
- definition: "Description must have list of fixed bugs"
rules:
descriptionMarkdown:
containsHeading2: "Fixed"
when:
labels:
has: "Bug"