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

Method add_labels

src/github.rs:189–201  ·  view source on GitHub ↗

[`GH::add_labels`]

(
        &self,
        inst_id: u64,
        owner: &str,
        repo: &str,
        issue_number: i64,
        labels: &[&str],
    )

Source from the content-addressed store, hash-verified

187impl GH for GHApi {
188 /// [`GH::add_labels`]
189 async fn add_labels(
190 &self,
191 inst_id: u64,
192 owner: &str,
193 repo: &str,
194 issue_number: i64,
195 labels: &[&str],
196 ) -> Result<()> {
197 let client = self.app_client.installation(InstallationId(inst_id))?;
198 let labels = labels.iter().map(ToString::to_string).collect::<Vec<String>>();
199 client.issues(owner, repo).add_labels(issue_number as u64, &labels).await?;
200 Ok(())
201 }
202
203 /// [`GH::create_check_run`]
204 async fn create_check_run(

Callers 2

create_voteMethod · 0.80
close_finished_voteMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected