Skip to content

Commit b7791b2

Browse files
Merge pull request #89 from rust-lang/pa-pr
Learn from PR builds too
2 parents 475baab + b53856b commit b7791b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/server/worker.rs

Lines changed: 2 additions & 2 deletions
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)