From ad6c39abdc35603f58e9b71993b5632c976deac1 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Thu, 5 Mar 2026 12:12:21 +0000 Subject: feat(status): add --reason to all pr and issue status commands All status transitions (pr close/reopen/ready/draft, issue close/reopen/ resolved) now accept an optional --reason flag stored in the event content. --- src/bin/ngit/cli.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/bin/ngit/cli.rs') diff --git a/src/bin/ngit/cli.rs b/src/bin/ngit/cli.rs index 37d85a2..a240597 100644 --- a/src/bin/ngit/cli.rs +++ b/src/bin/ngit/cli.rs @@ -248,6 +248,9 @@ pub enum PrCommands { /// Proposal event-id (hex) or nevent (bech32) #[arg(value_name = "ID|nevent")] id: String, + /// Optional reason stored in event content + #[arg(long)] + reason: Option, /// Use local cache only, skip network fetch #[arg(long)] offline: bool, @@ -257,6 +260,9 @@ pub enum PrCommands { /// Proposal event-id (hex) or nevent (bech32) #[arg(value_name = "ID|nevent")] id: String, + /// Optional reason stored in event content + #[arg(long)] + reason: Option, /// Use local cache only, skip network fetch #[arg(long)] offline: bool, @@ -266,6 +272,9 @@ pub enum PrCommands { /// Proposal event-id (hex) or nevent (bech32) #[arg(value_name = "ID|nevent")] id: String, + /// Optional reason stored in event content + #[arg(long)] + reason: Option, /// Use local cache only, skip network fetch #[arg(long)] offline: bool, @@ -275,6 +284,9 @@ pub enum PrCommands { /// Proposal event-id (hex) or nevent (bech32) #[arg(value_name = "ID|nevent")] id: String, + /// Optional reason stored in event content + #[arg(long)] + reason: Option, /// Use local cache only, skip network fetch #[arg(long)] offline: bool, @@ -414,6 +426,9 @@ pub enum IssueCommands { /// Issue event-id (hex) or nevent (bech32) #[arg(value_name = "ID|nevent")] id: String, + /// Optional reason stored in event content + #[arg(long)] + reason: Option, /// Use local cache only, skip network fetch #[arg(long)] offline: bool, -- cgit v1.2.3