From 6dcc1cb7e183465cdcdb75d23886374bb999d101 Mon Sep 17 00:00:00 2001 From: atlas Date: Tue, 23 Jun 2026 15:30:51 +0200 Subject: [PATCH] fix(reopen): add # Errors doc to run() Address argus review on #1938's reopen verb: public fns returning Result need a # Errors doc per the workspace convention. Document the patch_json and print_json failure modes. --- hive-forge/src/verbs/reopen.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hive-forge/src/verbs/reopen.rs b/hive-forge/src/verbs/reopen.rs index 0fed88f5..68208375 100644 --- a/hive-forge/src/verbs/reopen.rs +++ b/hive-forge/src/verbs/reopen.rs @@ -17,6 +17,11 @@ pub struct Args { pub(crate) number: u64, } +/// # Errors +/// +/// Returns an error when the `PATCH /repos/{repo}/issues/{number}` request +/// fails (network / non-success status from `patch_json`) or when emitting +/// the JSON summary via `print_json` fails. pub fn run(client: &Client, args: Args) -> Result<()> { let repo = client.repo(); let resp = client.patch_json(