From b143abb25d6ece32412629baa3e75e94d139979f Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Thu, 5 Mar 2026 13:14:34 +0000 Subject: refactor(subject): standardise on subject over title in CLI and output - JSON output fields renamed from title to subject in pr list/view and issue list/view - Printed view output changed from Title: to Subject: - ngit issue create --subject (alias --title) - ngit send --subject (alias --title) - Error messages and interactive prompts updated to match --- src/bin/ngit/sub_commands/list.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/bin/ngit/sub_commands/list.rs') diff --git a/src/bin/ngit/sub_commands/list.rs b/src/bin/ngit/sub_commands/list.rs index ab4f0f7..df147bc 100644 --- a/src/bin/ngit/sub_commands/list.rs +++ b/src/bin/ngit/sub_commands/list.rs @@ -413,7 +413,7 @@ fn output_json(proposals: &[(&nostr::Event, Kind, Vec, Option)]) serde_json::json!({ "id": id, "status": status, - "title": title, + "subject": title, "author": author, "branch": branch, "labels": proposal_labels, @@ -497,7 +497,7 @@ fn show_proposal_details( serde_json::json!({ "id": proposal.id.to_string(), "status": status_kind_to_str(*status_kind), - "title": display_title, + "subject": display_title, "author": proposal.pubkey.to_bech32().unwrap_or_default(), "branch": cover_letter.get_branch_name_with_pr_prefix_and_shorthand_id()?, "labels": proposal_labels, @@ -509,7 +509,7 @@ fn show_proposal_details( serde_json::json!({ "id": proposal.id.to_string(), "status": status_kind_to_str(*status_kind), - "title": display_title, + "subject": display_title, "author": proposal.pubkey.to_bech32().unwrap_or_default(), "branch": cover_letter.get_branch_name_with_pr_prefix_and_shorthand_id()?, "labels": proposal_labels, @@ -521,7 +521,7 @@ fn show_proposal_details( return Ok(()); } - println!("Title: {display_title}"); + println!("Subject: {display_title}"); println!( "Author: {}", proposal.pubkey.to_bech32().unwrap_or_default() -- cgit v1.2.3