hive-forge: show + post/remove emoji reactions on issues, PRs, and comments
This commit is contained in:
parent
eb8387bd73
commit
2c45a9960f
9 changed files with 261 additions and 13 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue