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);
}
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");