From a0f3e4e3b67208fee7543778954670e2b2acac80 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Sat, 3 Feb 2018 12:24:20 -0500 Subject: [PATCH] If a PR has wip in the title, don't build it anywhere --- ofborg/src/tasks/massrebuilder.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/ofborg/src/tasks/massrebuilder.rs b/ofborg/src/tasks/massrebuilder.rs index dfcfaee..9d23bdb 100644 --- a/ofborg/src/tasks/massrebuilder.rs +++ b/ofborg/src/tasks/massrebuilder.rs @@ -118,10 +118,14 @@ impl worker::SimpleWorker for MassRebuildWorker { return self.actions().skip(&job); } - auto_schedule_build_archs = self.acl.build_job_destinations_for_user_repo( - &iss.user.login, - &job.repo.full_name, - ); + if iss.title.to_lowercase().contains("wip") { + auto_schedule_build_archs = vec![]; + } else { + auto_schedule_build_archs = self.acl.build_job_destinations_for_user_repo( + &iss.user.login, + &job.repo.full_name, + ); + } } Err(e) => { self.events.tick("issue-fetch-failed");