We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff47d10 commit e0c1b29Copy full SHA for e0c1b29
murdock/murdock.py
@@ -459,9 +459,17 @@ async def handle_pull_request_event(self, event: dict):
459
await set_commit_status(job.commit.sha, status)
460
return
461
462
- if action in ["unlabeled", "edited"]:
+ if action in ["edited"]:
463
464
465
+ if action in ["unlabeled"]:
466
+ label_name = event["label"]["name"]
467
+ if label_name not in config.priorities.labels.keys():
468
+ return
469
+ elif not self.queued.search_by_pr_number(pull_request.number):
470
+ # skip re-queing if there's no queued job
471
472
+
473
if action == "opened" and CI_CONFIG.ready_label in pull_request.labels:
474
# A PR opened with "Ready label" already set will be scheduled via
475
# the "labeled" action
0 commit comments