Filter rules based on PR milestone
The Milestone Filter allows you to apply rules only to pull requests that have (or don’t have) specific milestones. This helps target rules based on release planning or project phases.
Must be set to "milestone"
Whether a milestone is required for the rule to apply
Milestone title pattern(s) that should match (supports regex)
Milestone title pattern(s) that should not match (supports regex)
Apply a rule only to PRs with a specific milestone:
Apply a rule to PRs with any of several milestones:
Apply a rule to PRs with milestones matching a pattern:
Apply a rule only to PRs that have any milestone set:
Apply a rule only to PRs that don’t have specific milestones:
The Milestone Filter supports several pattern matching methods:
"v2.0.0"
"v2.*"
"/^v2\\.\\d+\\.\\d+$/"
(enclosed in forward slashes)Get Milestone
The filter retrieves the milestone associated with the PR, if any
Check Required
If required
is true, it checks that a milestone is set
Check Match Patterns
If match
is specified, it checks if the milestone title matches any of the patterns
Check Ignore Patterns
If ignore
is specified, it checks if the milestone title matches any of the ignore patterns
Determine Result
Returns a match result based on whether the milestone satisfies all conditions
Apply different rules based on release milestones:
Enforce that PRs have a milestone:
Run different test requirements based on milestone:
Automatically add labels based on milestones:
Remember that milestones need to be created manually before they can be assigned to PRs
The Milestone Filter works best as part of a comprehensive release process:
This approach helps maintain a clear connection between changes and releases.
Filter rules based on PR milestone
The Milestone Filter allows you to apply rules only to pull requests that have (or don’t have) specific milestones. This helps target rules based on release planning or project phases.
Must be set to "milestone"
Whether a milestone is required for the rule to apply
Milestone title pattern(s) that should match (supports regex)
Milestone title pattern(s) that should not match (supports regex)
Apply a rule only to PRs with a specific milestone:
Apply a rule to PRs with any of several milestones:
Apply a rule to PRs with milestones matching a pattern:
Apply a rule only to PRs that have any milestone set:
Apply a rule only to PRs that don’t have specific milestones:
The Milestone Filter supports several pattern matching methods:
"v2.0.0"
"v2.*"
"/^v2\\.\\d+\\.\\d+$/"
(enclosed in forward slashes)Get Milestone
The filter retrieves the milestone associated with the PR, if any
Check Required
If required
is true, it checks that a milestone is set
Check Match Patterns
If match
is specified, it checks if the milestone title matches any of the patterns
Check Ignore Patterns
If ignore
is specified, it checks if the milestone title matches any of the ignore patterns
Determine Result
Returns a match result based on whether the milestone satisfies all conditions
Apply different rules based on release milestones:
Enforce that PRs have a milestone:
Run different test requirements based on milestone:
Automatically add labels based on milestones:
Remember that milestones need to be created manually before they can be assigned to PRs
The Milestone Filter works best as part of a comprehensive release process:
This approach helps maintain a clear connection between changes and releases.