[`GH::remove_label`]
(
&self,
inst_id: u64,
owner: &str,
repo: &str,
issue_number: i64,
label: &str,
)
| 441 | |
| 442 | /// [`GH::remove_label`] |
| 443 | async fn remove_label( |
| 444 | &self, |
| 445 | inst_id: u64, |
| 446 | owner: &str, |
| 447 | repo: &str, |
| 448 | issue_number: i64, |
| 449 | label: &str, |
| 450 | ) -> Result<()> { |
| 451 | let client = self.app_client.installation(InstallationId(inst_id))?; |
| 452 | match client.issues(owner, repo).remove_label(issue_number as u64, label).await { |
| 453 | Ok(_) => Ok(()), |
| 454 | Err(octocrab::Error::GitHub { source, backtrace: _ }) |
| 455 | if source.message == "Label does not exist" => |
| 456 | { |
| 457 | Ok(()) |
| 458 | } |
| 459 | Err(err) => Err(err.into()), |
| 460 | } |
| 461 | } |
| 462 | |
| 463 | /// [`GH::user_is_collaborator`] |
| 464 | async fn user_is_collaborator(&self, inst_id: u64, owner: &str, repo: &str, user: &str) -> Result<bool> { |
no outgoing calls
no test coverage detected