Filter rules based on PR description content
The Description Filter allows you to apply rules only when a pull request’s description contains (or doesn’t contain) specific content. This helps target rules based on the context or purpose described in the PR.
Must be set to "description"
Pattern(s) that the description should match (supports regex)
Pattern(s) that the description should not match (supports regex)
Apply a rule only when the description contains specific text:
Apply a rule when the description matches any of several patterns:
Apply a rule only when the description doesn’t mention something:
Apply a rule with both inclusion and exclusion patterns:
The Description Filter supports several pattern matching methods:
"breaking change"
"/fixes #\\d+/i"
(enclosed in forward slashes)For case-insensitive matching with regex, use the i
flag: "/breaking change/i"
Get Description
The filter retrieves the PR description from the GitHub event context
Check Match Patterns
If match
is specified, it checks if the description matches any of the patterns
Check Ignore Patterns
If ignore
is specified, it checks if the description matches any of the ignore patterns
Determine Result
Returns a match result based on whether the description satisfies all conditions
Apply special rules to breaking changes:
Apply different rules based on whether a PR references an issue:
Apply specific rules to PRs with draft release notes:
Skip certain validations for work-in-progress PRs:
Regex patterns can become complex; test them thoroughly to ensure they match as expected
To make the most of the Description Filter, create a PR template with standard sections:
This template creates predictable sections that your Description Filter can target.
Filter rules based on PR description content
The Description Filter allows you to apply rules only when a pull request’s description contains (or doesn’t contain) specific content. This helps target rules based on the context or purpose described in the PR.
Must be set to "description"
Pattern(s) that the description should match (supports regex)
Pattern(s) that the description should not match (supports regex)
Apply a rule only when the description contains specific text:
Apply a rule when the description matches any of several patterns:
Apply a rule only when the description doesn’t mention something:
Apply a rule with both inclusion and exclusion patterns:
The Description Filter supports several pattern matching methods:
"breaking change"
"/fixes #\\d+/i"
(enclosed in forward slashes)For case-insensitive matching with regex, use the i
flag: "/breaking change/i"
Get Description
The filter retrieves the PR description from the GitHub event context
Check Match Patterns
If match
is specified, it checks if the description matches any of the patterns
Check Ignore Patterns
If ignore
is specified, it checks if the description matches any of the ignore patterns
Determine Result
Returns a match result based on whether the description satisfies all conditions
Apply special rules to breaking changes:
Apply different rules based on whether a PR references an issue:
Apply specific rules to PRs with draft release notes:
Skip certain validations for work-in-progress PRs:
Regex patterns can become complex; test them thoroughly to ensure they match as expected
To make the most of the Description Filter, create a PR template with standard sections:
This template creates predictable sections that your Description Filter can target.