Watch
0
0
Fork
You've already forked hyperhive
0

hive-forge: add body to pr show --json, error --json on six verbs that silently ignored it

This commit is contained in:
damocles 2026-10-04 08:04:19 +02:00
commit e0ad3a567b

View file

@ -13,7 +13,7 @@
//! lockfile without any information the reader can act on.
//! Pass `--full` to dump the unfiltered diff.
use anyhow::Result;
use anyhow::{Result, bail};
use clap::Args as ClapArgs;
use forgejo_api::structs::RepoDownloadPullDiffOrPatchQuery;
@ -31,6 +31,9 @@ pub struct Args {
}
pub fn run(client: &Client, args: Args) -> Result<()> {
if client.json_mode() {
bail!("hive-forge diff: --json is not supported for this verb — a diff is text by nature");
}
let (owner, name) = client.owner_repo()?;
let diff = client
.api()