upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/bin/ngit/sub_commands
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/ngit/sub_commands')
-rw-r--r--src/bin/ngit/sub_commands/issue_status.rs4
-rw-r--r--src/bin/ngit/sub_commands/pr_status.rs16
2 files changed, 10 insertions, 10 deletions
diff --git a/src/bin/ngit/sub_commands/issue_status.rs b/src/bin/ngit/sub_commands/issue_status.rs
index 840ab8e..99b4fa6 100644
--- a/src/bin/ngit/sub_commands/issue_status.rs
+++ b/src/bin/ngit/sub_commands/issue_status.rs
@@ -183,8 +183,8 @@ pub async fn launch_close(id: &str, offline: bool, reason: Option<&str>) -> Resu
183 launch_status(id, offline, Kind::GitStatusClosed, "closed", reason).await 183 launch_status(id, offline, Kind::GitStatusClosed, "closed", reason).await
184} 184}
185 185
186pub async fn launch_reopen(id: &str, offline: bool) -> Result<()> { 186pub async fn launch_reopen(id: &str, offline: bool, reason: Option<&str>) -> Result<()> {
187 launch_status(id, offline, Kind::GitStatusOpen, "reopened", None).await 187 launch_status(id, offline, Kind::GitStatusOpen, "reopened", reason).await
188} 188}
189 189
190pub async fn launch_resolved(id: &str, offline: bool, reason: Option<&str>) -> Result<()> { 190pub async fn launch_resolved(id: &str, offline: bool, reason: Option<&str>) -> Result<()> {
diff --git a/src/bin/ngit/sub_commands/pr_status.rs b/src/bin/ngit/sub_commands/pr_status.rs
index 12aafb7..4a51bb3 100644
--- a/src/bin/ngit/sub_commands/pr_status.rs
+++ b/src/bin/ngit/sub_commands/pr_status.rs
@@ -193,18 +193,18 @@ async fn launch_status(
193 Ok(()) 193 Ok(())
194} 194}
195 195
196pub async fn launch_close(id: &str, offline: bool) -> Result<()> { 196pub async fn launch_close(id: &str, offline: bool, reason: Option<&str>) -> Result<()> {
197 launch_status(id, offline, Kind::GitStatusClosed, "closed", None).await 197 launch_status(id, offline, Kind::GitStatusClosed, "closed", reason).await
198} 198}
199 199
200pub async fn launch_reopen(id: &str, offline: bool) -> Result<()> { 200pub async fn launch_reopen(id: &str, offline: bool, reason: Option<&str>) -> Result<()> {
201 launch_status(id, offline, Kind::GitStatusOpen, "reopened", None).await 201 launch_status(id, offline, Kind::GitStatusOpen, "reopened", reason).await
202} 202}
203 203
204pub async fn launch_ready(id: &str, offline: bool) -> Result<()> { 204pub async fn launch_ready(id: &str, offline: bool, reason: Option<&str>) -> Result<()> {
205 launch_status(id, offline, Kind::GitStatusOpen, "marked as ready", None).await 205 launch_status(id, offline, Kind::GitStatusOpen, "marked as ready", reason).await
206} 206}
207 207
208pub async fn launch_draft(id: &str, offline: bool) -> Result<()> { 208pub async fn launch_draft(id: &str, offline: bool, reason: Option<&str>) -> Result<()> {
209 launch_status(id, offline, Kind::GitStatusDraft, "converted to draft", None).await 209 launch_status(id, offline, Kind::GitStatusDraft, "converted to draft", reason).await
210} 210}