Skip to content

Commit 0eaf61f

Browse files
committed
reword message to be more concise
1 parent fbf6c05 commit 0eaf61f

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

src/bin/server/worker.rs

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -259,29 +259,22 @@ impl Worker {
259259
};
260260

261261
let opening = match log_variables.job_name {
262-
Some(job_name) => format!("The job `{}` of your PR", job_name),
262+
Some(job_name) => format!("The job **`{}`** of your PR", job_name),
263263
None => "Your PR".to_owned(),
264264
};
265265

266266
let log_url = job.log_url().unwrap_or_else(|| "unknown".into());
267-
let pretty_log_url = format!(
268-
"https://rust-lang.github.io/rust-log-analyzer/log-viewer/#{}",
269-
&log_url
270-
);
271-
let raw_log_url = log_url;
272267
self.github.post_comment(repo, pr, &format!(r#"
273-
{opening} [failed]({html_url}) ([pretty log]({log_url}), [raw log]({raw_log_url})). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.
268+
{opening} failed! Check out the build log: [(web)]({html_url}) [(plain)]({log_url})
274269
275-
<details><summary><i>Click to expand the log.</i></summary>
270+
<details><summary><i>Click to see the possible cause of the failure (guessed by this bot)</i></summary>
276271
277272
```plain
278273
{log}
279274
```
280275
281-
</details><p></p>
282-
283-
[I'm a bot](https://github.com/rust-lang/rust-log-analyzer)! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact **`@rust-lang/infra`**. ([Feature Requests](https://github.com/rust-lang/rust-log-analyzer/issues?q=is%3Aopen+is%3Aissue+label%3Afeature-request))
284-
"#, opening = opening, html_url = job.html_url(), log_url = pretty_log_url, raw_log_url = raw_log_url, log = extracted))?;
276+
</details>
277+
"#, opening = opening, html_url = job.html_url(), log_url = log_url, log = extracted))?;
285278

286279
info!("marked build {} as recently notified", build_id);
287280
self.recently_notified.store(build_id);

0 commit comments

Comments
 (0)