ent list: show comment count for each issue
This commit is contained in:
parent
ba57f629e3
commit
400e0ca26f
1 changed files with 6 additions and 1 deletions
|
|
@ -100,7 +100,12 @@ fn handle_command(args: &Args, issues_dir: &std::path::Path) -> anyhow::Result<(
|
||||||
println!("{:?}:", state);
|
println!("{:?}:", state);
|
||||||
for uuid in these_uuids {
|
for uuid in these_uuids {
|
||||||
let issue = issues.issues.get(*uuid).unwrap();
|
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!("");
|
println!("");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue