upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/bin/ngit/sub_commands/pr_status.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/ngit/sub_commands/pr_status.rs')
-rw-r--r--src/bin/ngit/sub_commands/pr_status.rs16
1 files changed, 8 insertions, 8 deletions
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}