hive-forge: show + post/remove emoji reactions on issues, PRs, and comments

This commit is contained in:
damocles 2026-08-18 12:37:52 +02:00 committed by mara
commit 2c45a9960f
9 changed files with 261 additions and 13 deletions

View file

@ -7,7 +7,7 @@ use forgejo_api::structs::{IssueGetCommentsQuery, StateType};
use crate::client::{Client, index};
use crate::notify;
use crate::verbs::attachment_line;
use crate::verbs::{attachment_line, issue_reactions, reaction_summary};
#[derive(ClapArgs)]
pub struct Args {
@ -53,6 +53,10 @@ pub fn run(client: &Client, args: Args) -> Result<()> {
println!("{line}");
}
}
let reactions = issue_reactions(client, owner, name, args.number)?;
if let Some(summary) = reaction_summary(&reactions) {
println!("[reactions: {summary}]");
}
let (_, comments) = client
.api()
.issue_get_comments(