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

Method post_comment

src/github.rs:429–440  ·  view source on GitHub ↗

[`GH::post_comment`]

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

Source from the content-addressed store, hash-verified

427
428 /// [`GH::post_comment`]
429 async fn post_comment(
430 &self,
431 inst_id: u64,
432 owner: &str,
433 repo: &str,
434 issue_number: i64,
435 body: &str,
436 ) -> Result<i64> {
437 let client = self.app_client.installation(InstallationId(inst_id))?;
438 let comment = client.issues(owner, repo).create_comment(issue_number as u64, body).await?;
439 Ok(comment.id.0 as i64)
440 }
441
442 /// [`GH::remove_label`]
443 async fn remove_label(

Callers 4

create_voteMethod · 0.80
cancel_voteMethod · 0.80
check_voteMethod · 0.80
close_finished_voteMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected