MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / github_get

Method github_get

tools/ci/src/cla_assistant.rs:168–175  ·  view source on GitHub ↗
(&self, path: &str)

Source from the content-addressed store, hash-verified

166 }
167
168 fn github_get<T: DeserializeOwned>(&self, path: &str) -> Result<T> {
169 let url = format!("https://api.github.com{path}");
170 let response = self.http.get(&url).send()?;
171 if !response.status().is_success() {
172 bail!("GET {url} failed with HTTP {}", response.status());
173 }
174 Ok(response.json()?)
175 }
176
177 fn pull_request(&self, repo: &Repo, pr_number: u64) -> Result<PullRequest> {
178 self.github_get(&format!("/repos/{}/{}/pulls/{pr_number}", repo.owner, repo.name))

Callers 2

pull_requestMethod · 0.80
list_statusesMethod · 0.80

Calls 6

is_successMethod · 0.80
statusMethod · 0.80
sendMethod · 0.65
OkFunction · 0.50
getMethod · 0.45
jsonMethod · 0.45

Tested by

no test coverage detected