Skip to content

Commit e9fa830

Browse files
committed
Fix assigned PR count in Zulip message
We were counting the number of chars in the string instead of the number of assigned PRs.
1 parent e2ebb7b commit e9fa830

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/zulip.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,8 @@ async fn workqueue_commands(
294294

295295
let mut response = format!(
296296
"`rust-lang/rust` PRs in your review queue: {prs} ({} {})\n",
297-
prs.len(),
298-
pluralize("PR", prs.len())
297+
assigned_prs.len(),
298+
pluralize("PR", assigned_prs.len())
299299
);
300300
writeln!(response, "Review capacity: {capacity}\n")?;
301301
writeln!(response, "*Note that only selected PRs that are assigned to you are considered as being in the review queue.*")?;

0 commit comments

Comments
 (0)