(commitSha: string, commitsCount: number)
| 38 | ]; |
| 39 | |
| 40 | function 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 | |
| 49 | async function getRepoAge( |
| 50 | commitSha: string, |
no test coverage detected