From 293ef01e141846f7de5af2c8c6be9d6c694083fd Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Wed, 4 Mar 2026 15:37:17 +0000 Subject: standardise on --label; add label filter and display to pr list/view - rename --hashtag (comma-separated) to --label (repeatable) on issue list, matching the --label flag already used on issue create - add --label filter to pr list with the same OR semantics (matching GitHub) - display labels column in pr list table and Labels: line in pr view - include labels array in all JSON outputs (list and view for both issue and pr) - rename internal 'hashtags' -> 'labels' throughout issue_list.rs and list.rs --- src/bin/ngit/main.rs | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'src/bin/ngit/main.rs') diff --git a/src/bin/ngit/main.rs b/src/bin/ngit/main.rs index 4c1aa75..28bf1da 100644 --- a/src/bin/ngit/main.rs +++ b/src/bin/ngit/main.rs @@ -57,12 +57,20 @@ async fn main() { Commands::Pr(args) => match &args.pr_command { PrCommands::List { status, + labels, json, id, offline, } => { - sub_commands::list::launch(status.clone(), *json, false, id.clone(), *offline) - .await + sub_commands::list::launch( + status.clone(), + labels.clone(), + *json, + false, + id.clone(), + *offline, + ) + .await } PrCommands::View { id, @@ -72,6 +80,7 @@ async fn main() { } => { sub_commands::list::launch( "open,draft,closed,applied".to_string(), + vec![], *json, *comments, Some(id.clone()), @@ -122,14 +131,14 @@ async fn main() { Commands::Issue(args) => match &args.issue_command { IssueCommands::List { status, - hashtag, + labels, json, id, offline, } => { sub_commands::issue_list::launch( status.clone(), - hashtag.clone(), + labels.clone(), *json, false, id.clone(), @@ -145,7 +154,7 @@ async fn main() { } => { sub_commands::issue_list::launch( "open,draft,closed,applied".to_string(), - None, + vec![], *json, *comments, Some(id.clone()), -- cgit v1.2.3