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

Method get_pr_files

src/github.rs:376–382  ·  view source on GitHub ↗

[`GH::get_pr_files`]

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

Source from the content-addressed store, hash-verified

374
375 /// [`GH::get_pr_files`]
376 async fn get_pr_files(&self, inst_id: u64, owner: &str, repo: &str, pr_number: i64) -> Result<Vec<File>> {
377 let client = self.app_client.installation(InstallationId(inst_id))?;
378 let url = format!("{GITHUB_API_URL}/repos/{owner}/{repo}/pulls/{pr_number}/files");
379 let first_page: Page<File> = client.get(url, None::<&()>).await?;
380 let files: Vec<File> = client.all_pages(first_page).await?;
381 Ok(files)
382 }
383
384 /// [`GH::get_repository_installation_id`]
385 async fn get_repository_installation_id(&self, owner: &str, repo: &str) -> Result<u64> {

Callers 1

from_event_automaticMethod · 0.80

Calls 1

getMethod · 0.80

Tested by

no test coverage detected