Skip to content

Commit 0ef5b45

Browse files
Merge pull request #1376 from rylev/better-message
A better message for unrolled rollup
2 parents 34677ed + 45a3201 commit 0ef5b45

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

site/src/request_handlers/github.rs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,18 @@ async fn handle_rollup_merge(
9494
use std::fmt::Write;
9595
let (pr, commit) = n?;
9696
let mut string = string?;
97-
write!(&mut string, "#{pr}: {commit}\n").unwrap();
97+
write!(
98+
&mut string,
99+
"|#{pr}|[{commit}](https://github.com/rust-lang-ci/rust/commit/{commit})|\n"
100+
)
101+
.unwrap();
98102
Ok(string)
99103
})?;
100104
let msg =
101-
format!("Try perf builds for each individual rolled up PR have been enqueued:\n{mapping}");
105+
format!("📌 Perf builds for each rolled up PR:\n\n\
106+
|PR# | Perf Build Sha|\n|----|-----|\n\
107+
{mapping}\nIn the case of a perf regression, \
108+
run the following command for each PR you suspect might be the cause: `@rust-timer build $SHA`");
102109
main_repo_client.post_comment(rollup_pr_number, msg).await;
103110
Ok(())
104111
}

0 commit comments

Comments
 (0)