ent list: show comment count for each issue

This commit is contained in:
Sebastian Kuzminsky 2025-07-08 16:20:44 -06:00
parent ba57f629e3
commit 400e0ca26f

View file

@ -100,7 +100,12 @@ fn handle_command(args: &Args, issues_dir: &std::path::Path) -> anyhow::Result<(
println!("{:?}:", state);
for uuid in these_uuids {
let issue = issues.issues.get(*uuid).unwrap();
println!("{} {}", uuid, issue.title());
let num_comments = issue.comments.len();
if num_comments == 0 {
println!("{} {}", uuid, issue.title());
} else {
println!("{} 🗩 {} {}", uuid, num_comments, issue.title());
}
}
println!("");
}