If a PR has wip in the title, don't build it anywhere

This commit is contained in:
Graham Christensen 2018-02-03 12:24:20 -05:00
parent 4359033f30
commit a0f3e4e3b6
No known key found for this signature in database
GPG key ID: ACA1C1D120C83D5C

View file

@ -118,10 +118,14 @@ impl<E: stats::SysEvents> worker::SimpleWorker for MassRebuildWorker<E> {
return self.actions().skip(&job); return self.actions().skip(&job);
} }
auto_schedule_build_archs = self.acl.build_job_destinations_for_user_repo( if iss.title.to_lowercase().contains("wip") {
&iss.user.login, auto_schedule_build_archs = vec![];
&job.repo.full_name, } else {
); auto_schedule_build_archs = self.acl.build_job_destinations_for_user_repo(
&iss.user.login,
&job.repo.full_name,
);
}
} }
Err(e) => { Err(e) => {
self.events.tick("issue-fetch-failed"); self.events.tick("issue-fetch-failed");