diff options
Diffstat (limited to 'src/bin/ngit/sub_commands/pr_status.rs')
| -rw-r--r-- | src/bin/ngit/sub_commands/pr_status.rs | 16 |
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 | ||
| 196 | pub async fn launch_close(id: &str, offline: bool) -> Result<()> { | 196 | pub 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 | ||
| 200 | pub async fn launch_reopen(id: &str, offline: bool) -> Result<()> { | 200 | pub 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 | ||
| 204 | pub async fn launch_ready(id: &str, offline: bool) -> Result<()> { | 204 | pub 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 | ||
| 208 | pub async fn launch_draft(id: &str, offline: bool) -> Result<()> { | 208 | pub 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 | } |