MCPcopy Create free account
hub / github.com/Devographics/Monorepo / getRepoSHA

Function getRepoSHA

api/src/external_apis/github.ts:68–75  ·  view source on GitHub ↗
({ owner, repo }: { owner: string; repo: string })

Source from the content-addressed store, hash-verified

66}
67
68export const getRepoSHA = async ({ owner, repo }: { owner: string; repo: string }) => {
69 const octokit = getOctokit()
70 const commits = await octokit.request('GET /repos/{owner}/{repo}/commits?per_page=1&page=1', {
71 owner,
72 repo
73 })
74 return commits.data?.[0]?.sha
75}
76
77// Web hooks
78

Callers 1

loadSurveysFromGitHubFunction · 0.90

Calls 1

getOctokitFunction · 0.85

Tested by

no test coverage detected