Support 'pr-must-backport' label

This commit is contained in:
Ivan 2021-04-07 17:12:23 +03:00 committed by GitHub
parent aa47eb7d5e
commit a6d5c4329e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,7 +76,7 @@ class Backport:
# First pass. Find all must-backports
for label in pr['labels']['nodes']:
if label['name'] == 'pr-bugfix':
if label['name'] == 'pr-bugfix' or label['name'] == 'pr-must-backport':
backport_map[pr['number']] = branch_set.copy()
continue
matched = RE_MUST_BACKPORT.match(label['name'])