From ce1e966d7defbca4429b9fdd3f43c07224f83622 Mon Sep 17 00:00:00 2001 From: Sebastian Kuzminsky Date: Tue, 8 Jul 2025 16:20:44 -0600 Subject: [PATCH] ent list: show comment count for each issue --- src/bin/ent/main.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/bin/ent/main.rs b/src/bin/ent/main.rs index d38eb3f..c3130f6 100644 --- a/src/bin/ent/main.rs +++ b/src/bin/ent/main.rs @@ -91,7 +91,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!(""); }