summaryrefslogtreecommitdiffstats
path: root/src/issues.rs
diff options
context:
space:
mode:
authorCyborus <cyborus@cyborus.xyz>2024-06-10 19:27:43 +0200
committerCyborus <cyborus@cyborus.xyz>2024-06-10 19:27:43 +0200
commit56f0e8babff2c67c3aa961f2affb8ef2164ef77e (patch)
treeb91809fffd7ac289962fbe09711f38e1074c9f9c /src/issues.rs
parentMerge pull request 'print markdown text nicely' (#75) from pretty-text into main (diff)
downloadforgejo-cli-56f0e8babff2c67c3aa961f2affb8ef2164ef77e.tar.xz
forgejo-cli-56f0e8babff2c67c3aa961f2affb8ef2164ef77e.zip
add more success messages
Diffstat (limited to 'src/issues.rs')
-rw-r--r--src/issues.rs10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/issues.rs b/src/issues.rs
index 233d603..4c1f08c 100644
--- a/src/issues.rs
+++ b/src/issues.rs
@@ -574,8 +574,16 @@ pub async fn close_issue(
unset_due_date: None,
updated_at: None,
};
- api.issue_edit_issue(repo.owner(), repo.name(), issue, edit)
+ let issue_data = api
+ .issue_edit_issue(repo.owner(), repo.name(), issue, edit)
.await?;
+ let issue_title = issue_data
+ .title
+ .as_deref()
+ .ok_or_eyre("issue does not have title")?;
+
+ println!("Closed issue {issue}: \"{issue_title}\"");
+
Ok(())
}