MCPcopy Create free account
hub / github.com/cncf/gitvote / remove_label

Method remove_label

src/github.rs:443–461  ·  view source on GitHub ↗

[`GH::remove_label`]

(
        &self,
        inst_id: u64,
        owner: &str,
        repo: &str,
        issue_number: i64,
        label: &str,
    )

Source from the content-addressed store, hash-verified

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> {

Callers 3

create_voteMethod · 0.80
cancel_voteMethod · 0.80
close_finished_voteMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected