MCPcopy
hub / github.com/refined-github/refined-github / buildLastCommitsPageUrl

Function buildLastCommitsPageUrl

source/features/repo-age.tsx:40–47  ·  view source on GitHub ↗
(commitSha: string, commitsCount: number)

Source from the content-addressed store, hash-verified

38];
39
40function buildLastCommitsPageUrl(commitSha: string, commitsCount: number): string {
41 if (commitsCount <= 2) {
42 return buildRepoUrl('commits');
43 }
44
45 const offset = commitsCount - 2;
46 return buildRepoUrl('commits', `?after=${commitSha}+${offset}`);
47}
48
49async function getRepoAge(
50 commitSha: string,

Callers 2

getRepoAgeFunction · 0.85
updaterFunction · 0.85

Calls 1

buildRepoUrlFunction · 0.85

Tested by

no test coverage detected