Select pull requests by their GitHub labels
Use label names when a release team marks the pull requests that need review.
Choose the included and excluded labels#
This example admits a pull request bearing either release label and skips one carrying the hold label. Match the spelling of the GitHub labels exactly.
version: 2
reviews:
labels_include: ["release candidate", "backport"]
labels_exclude: ["release hold"]
A pull request with both backport and release hold is excluded. Branch and label restrictions already set in Review scope still apply. A pattern such as release* in a label list looks for that literal label.