diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-03-05 12:12:21 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-03-05 12:12:21 +0000 |
| commit | ad6c39abdc35603f58e9b71993b5632c976deac1 (patch) | |
| tree | 2ee43d79216226c5f5bada4818a8c2458b8348a0 /src/bin/ngit/sub_commands/issue_status.rs | |
| parent | b0ad2fd720d0cd335c07f22767844f571e3306ff (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/sub_commands/issue_status.rs')
| -rw-r--r-- | src/bin/ngit/sub_commands/issue_status.rs | 4 |
1 files changed, 2 insertions, 2 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 | ||
| 186 | pub async fn launch_reopen(id: &str, offline: bool) -> Result<()> { | 186 | pub 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 | ||
| 190 | pub async fn launch_resolved(id: &str, offline: bool, reason: Option<&str>) -> Result<()> { | 190 | pub async fn launch_resolved(id: &str, offline: bool, reason: Option<&str>) -> Result<()> { |