upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/bin/ngit/main.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2026-03-05 12:12:21 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2026-03-05 12:12:21 +0000
commitad6c39abdc35603f58e9b71993b5632c976deac1 (patch)
tree2ee43d79216226c5f5bada4818a8c2458b8348a0 /src/bin/ngit/main.rs
parentb0ad2fd720d0cd335c07f22767844f571e3306ff (diff)
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.
Diffstat (limited to 'src/bin/ngit/main.rs')
-rw-r--r--src/bin/ngit/main.rs20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/bin/ngit/main.rs b/src/bin/ngit/main.rs
index a0cb3e6..3686011 100644
--- a/src/bin/ngit/main.rs
+++ b/src/bin/ngit/main.rs
@@ -102,17 +102,17 @@ async fn main() {
102 PrCommands::Send(sub_args) => { 102 PrCommands::Send(sub_args) => {
103 sub_commands::send::launch(&cli, sub_args, false).await 103 sub_commands::send::launch(&cli, sub_args, false).await
104 } 104 }
105 PrCommands::Close { id, offline } => { 105 PrCommands::Close { id, reason, offline } => {
106 sub_commands::pr_status::launch_close(id, *offline).await 106 sub_commands::pr_status::launch_close(id, *offline, reason.as_deref()).await
107 } 107 }
108 PrCommands::Reopen { id, offline } => { 108 PrCommands::Reopen { id, reason, offline } => {
109 sub_commands::pr_status::launch_reopen(id, *offline).await 109 sub_commands::pr_status::launch_reopen(id, *offline, reason.as_deref()).await
110 } 110 }
111 PrCommands::Ready { id, offline } => { 111 PrCommands::Ready { id, reason, offline } => {
112 sub_commands::pr_status::launch_ready(id, *offline).await 112 sub_commands::pr_status::launch_ready(id, *offline, reason.as_deref()).await
113 } 113 }
114 PrCommands::Draft { id, offline } => { 114 PrCommands::Draft { id, reason, offline } => {
115 sub_commands::pr_status::launch_draft(id, *offline).await 115 sub_commands::pr_status::launch_draft(id, *offline, reason.as_deref()).await
116 } 116 }
117 PrCommands::Comment { 117 PrCommands::Comment {
118 id, 118 id,
@@ -188,8 +188,8 @@ async fn main() {
188 sub_commands::issue_status::launch_resolved(id, *offline, reason.as_deref()) 188 sub_commands::issue_status::launch_resolved(id, *offline, reason.as_deref())
189 .await 189 .await
190 } 190 }
191 IssueCommands::Reopen { id, offline } => { 191 IssueCommands::Reopen { id, reason, offline } => {
192 sub_commands::issue_status::launch_reopen(id, *offline).await 192 sub_commands::issue_status::launch_reopen(id, *offline, reason.as_deref()).await
193 } 193 }
194 IssueCommands::Comment { 194 IssueCommands::Comment {
195 id, 195 id,