diff --git a/src/github.rs b/src/github.rs index 0ef421604..236b07897 100644 --- a/src/github.rs +++ b/src/github.rs @@ -785,33 +785,47 @@ impl Issue { Ok(()) } - pub async fn remove_label(&self, client: &GithubClient, label: &str) -> anyhow::Result<()> { - log::info!("remove_label from {}: {:?}", self.global_id(), label); - // DELETE /repos/:owner/:repo/issues/:number/labels/{name} - let url = format!( - "{repo_url}/issues/{number}/labels/{name}", - repo_url = self.repository().url(client), - number = self.number, - name = label, + pub async fn remove_labels( + &self, + client: &GithubClient, + labels: Vec