(collection: string, slug: string)
| 492 | } |
| 493 | |
| 494 | async getStatuses(collection: string, slug: string) { |
| 495 | const contentKey = generateContentKey(collection, slug); |
| 496 | const branch = branchFromContentKey(contentKey); |
| 497 | const pullRequest = await this.getBranchPullRequest(branch); |
| 498 | const statuses = await this.getPullRequestStatues(pullRequest); |
| 499 | return statuses.map(({ context, state, targetUrl }) => ({ |
| 500 | context: context.name, |
| 501 | state: state === AzureCommitStatusState.SUCCEEDED ? PreviewState.Success : PreviewState.Other, |
| 502 | target_url: targetUrl, |
| 503 | })); |
| 504 | } |
| 505 | |
| 506 | async getCommitItems( |
| 507 | files: { path: string; newPath?: string }[], |
no test coverage detected