Skip to content

Commit b53856b

Browse files
committed
learn from PR builds too
1 parent 475baab commit b53856b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/server/worker.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,11 @@ impl Worker {
171171
if !outcome.is_passed() {
172172
self.report_failed(build_id, build.as_ref())?;
173173
}
174-
if build.pr_number().is_none() && build.branch_name() == "auto" {
174+
if build.pr_number().is_some() || build.branch_name() == "auto" {
175175
info!("learning from the log");
176176
self.learn(build.as_ref())?;
177177
} else {
178-
info!("did not learn as it's not an auto build");
178+
info!("did not learn as it's not an auto build or a PR build");
179179
}
180180

181181
Ok(ProcessOutcome::Continue)

0 commit comments

Comments
 (0)