diff --git a/src/bin/server/worker.rs b/src/bin/server/worker.rs index c38df0c..69d7886 100644 --- a/src/bin/server/worker.rs +++ b/src/bin/server/worker.rs @@ -171,11 +171,11 @@ impl Worker { if !outcome.is_passed() { self.report_failed(build_id, build.as_ref())?; } - if build.pr_number().is_none() && build.branch_name() == "auto" { + if build.pr_number().is_some() || build.branch_name() == "auto" { info!("learning from the log"); self.learn(build.as_ref())?; } else { - info!("did not learn as it's not an auto build"); + info!("did not learn as it's not an auto build or a PR build"); } Ok(ProcessOutcome::Continue)