We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3ab8a6 commit 50b9627Copy full SHA for 50b9627
murdock/murdock.py
@@ -532,9 +532,17 @@ async def handle_pull_request_event(self, event: dict):
532
await set_commit_status(job.commit.sha, status)
533
return
534
535
- if action in ["unlabeled", "edited"]:
+ if action in ["edited"]:
536
537
538
+ if action in ["unlabeled"]:
539
+ label_name = event["label"]["name"]
540
+ if label_name not in config.priorities.labels.keys():
541
+ return
542
+ elif not self.queued.search_by_pr_number(pull_request.number):
543
+ # skip re-queing if there's no queued job
544
545
+
546
if action == "opened" and CI_CONFIG.ready_label in pull_request.labels:
547
# A PR opened with "Ready label" already set will be scheduled via
548
# the "labeled" action
0 commit comments