hive-forge: surface comment/issue attachments in comments/view/comment-show/issue
This commit is contained in:
parent
ecf9ff4d80
commit
6f3ac755e0
5 changed files with 93 additions and 2 deletions
|
|
@ -5,7 +5,7 @@ use clap::Args as ClapArgs;
|
|||
use serde_json::json;
|
||||
|
||||
use crate::client::{Client, index};
|
||||
use crate::verbs::{dependency_summaries, print_json};
|
||||
use crate::verbs::{attachment_json, dependency_summaries, print_json};
|
||||
|
||||
#[derive(ClapArgs)]
|
||||
pub struct Args {
|
||||
|
|
@ -43,6 +43,7 @@ pub fn run(client: &Client, args: Args) -> Result<()> {
|
|||
"labels": labels,
|
||||
"dependencies": dependencies,
|
||||
"body": issue.body,
|
||||
"attachments": attachment_json(issue.assets.as_deref()),
|
||||
});
|
||||
print_json(&trimmed)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue