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