diff --git a/ofborg/src/tasks/build.rs b/ofborg/src/tasks/build.rs index 7b2a52a..dd28b87 100644 --- a/ofborg/src/tasks/build.rs +++ b/ofborg/src/tasks/build.rs @@ -105,6 +105,10 @@ impl<'a, 'b> JobActions<'a, 'b> { self.tell(worker::Action::Ack); } + pub fn nothing_to_do(&mut self) { + self.tell(worker::Action::Ack); + } + pub fn merge_failed(&mut self) { let msg = buildresult::BuildResult { repo: self.job.repo.clone(), @@ -232,6 +236,11 @@ impl notifyworker::SimpleNotifyWorker for BuildWorker { ) { let mut actions = self.actions(&job, notifier); + if job.attrs.len() == 0 { + actions.nothing_to_do(); + return; + } + info!("Working on {}", job.pr.number); let project = self.cloner.project( job.repo.full_name.clone(),