ent list: show assignee, if any
This commit is contained in:
parent
b4268a5f29
commit
c0e0618ec0
1 changed files with 9 additions and 6 deletions
|
|
@ -97,12 +97,15 @@ 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();
|
||||||
let num_comments = issue.comments.len();
|
let comments = match issue.comments.len() {
|
||||||
if num_comments == 0 {
|
0 => String::from(" "),
|
||||||
println!("{} {}", uuid, issue.title());
|
n => format!("🗩 {}", n),
|
||||||
} else {
|
};
|
||||||
println!("{} 🗩 {} {}", uuid, num_comments, issue.title());
|
let assignee = match &issue.assignee {
|
||||||
}
|
Some(assignee) => format!(" (👉 {})", assignee),
|
||||||
|
None => String::from(""),
|
||||||
|
};
|
||||||
|
println!("{} {} {}{}", uuid, comments, issue.title(), assignee);
|
||||||
}
|
}
|
||||||
println!("");
|
println!("");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue