Skip to content

Commit c07d182

Browse files
kartbencfriedt
authored andcommitted
scripts: ci: do_not_merge.py: labels starting with 'block:' mean DNM
When checking for "do not merge" labels on a pull request, also consider any label that starts with "block:" as a DNM label (e.g "block: HW Test"). Signed-off-by: Benjamin Cabé <[email protected]>
1 parent 86ebdf8 commit c07d182

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/ci/do_not_merge.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def main(argv):
7979
for label in pr.get_labels():
8080
print(f"label: {label.name}")
8181

82-
if label.name in DNM_LABELS:
82+
if label.name in DNM_LABELS or label.name.startswith("block:"):
8383
print(f"Pull request is labeled as \"{label.name}\".")
8484
fail = True
8585

0 commit comments

Comments
 (0)