Skip to content

Commit 1a5e499

Browse files
committed
Print PRs in a workqueue as a bullet point list
1 parent 534a3d8 commit 1a5e499

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/zulip.rs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -291,12 +291,6 @@ async fn workqueue_commands(
291291
.collect::<Vec<_>>();
292292
assigned_prs.sort();
293293

294-
let prs = assigned_prs
295-
.iter()
296-
.map(|pr| format!("#{pr}"))
297-
.collect::<Vec<String>>()
298-
.join(", ");
299-
300294
let review_prefs = get_review_prefs(&db_client, gh_id)
301295
.await
302296
.context("cannot get review preferences")?;
@@ -313,8 +307,13 @@ async fn workqueue_commands(
313307
RotationMode::OffRotation => "off rotation",
314308
};
315309

310+
let prs = assigned_prs
311+
.iter()
312+
.map(|pr| format!("- [#{pr}](https://github.com/rust-lang/rust/pull/{pr})"))
313+
.collect::<Vec<String>>()
314+
.join(", ");
316315
let mut response = format!(
317-
"`rust-lang/rust` PRs in your review queue: {prs} ({} {})\n",
316+
"`rust-lang/rust` PRs in your review queue ({} {}):\n{prs}\n",
318317
assigned_prs.len(),
319318
pluralize("PR", assigned_prs.len())
320319
);

0 commit comments

Comments
 (0)