execute on-target-branch hook

This commit is contained in:
Graham Christensen 2019-03-22 13:52:01 -04:00
parent 297dd02f62
commit 697ce8635a
No known key found for this signature in database
GPG key ID: ACA1C1D120C83D5C

View file

@ -211,6 +211,17 @@ impl<E: stats::SysEvents + 'static> worker::SimpleWorker for EvaluationWorker<E>
info!("Checking out target branch {}", &target_branch);
let refpath = co.checkout_origin_ref(target_branch.as_ref()).unwrap();
if self
.handle_strategy_err(
evaluation_strategy.on_target_branch(&Path::new(&refpath), &mut overall_status),
&gists,
&mut overall_status,
)
.is_err()
{
return self.actions().skip(&job);
}
overall_status.set_with_description(
"Checking original stdenvs",
hubcaps::statuses::State::Pending,