hive-forge: assign accepts [repo] override (argus@#407)

This commit is contained in:
damocles 2026-05-25 02:07:29 +02:00 committed by Mara
parent 595e3c040c
commit 76cf2ffd36

View file

@ -19,10 +19,12 @@ pub struct Args {
/// Remove the user instead of adding.
#[arg(long)]
remove: bool,
/// Repo override.
repo: Option<String>,
}
pub fn run(client: &Client, args: Args) -> Result<()> {
let repo = client.repo(None);
let repo = client.repo(args.repo.as_deref());
let current = client.get_json(&format!("/repos/{repo}/issues/{}", args.number))?;
let mut assignees: Vec<String> = current
.get("assignees")