(projectId: string)
| 124 | } |
| 125 | |
| 126 | async function resolveHeadBaseline(projectId: string): Promise<ProjectDiffResolvedBaseline> { |
| 127 | const entry = await getProjectCommitEntry(projectId, 'HEAD') |
| 128 | if (!entry) { |
| 129 | return { |
| 130 | kind: 'head', |
| 131 | rev: EMPTY_TREE_OID, |
| 132 | label: 'Initial state', |
| 133 | commitSha: null, |
| 134 | shortSha: null, |
| 135 | subject: null, |
| 136 | committedAt: null, |
| 137 | capturedAt: null, |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | return toResolvedCommitBaseline('head', entry) |
| 142 | } |
| 143 | |
| 144 | async function resolvePreviousCommitBaseline( |
| 145 | projectId: string, |
no test coverage detected