(pullRequest: GitHubPull, newStatus: string)
| 1192 | } |
| 1193 | |
| 1194 | async setPullRequestStatus(pullRequest: GitHubPull, newStatus: string) { |
| 1195 | const labels = [ |
| 1196 | ...pullRequest.labels |
| 1197 | .filter(label => !isCMSLabel(label.name, this.cmsLabelPrefix)) |
| 1198 | .map(l => l.name), |
| 1199 | statusToLabel(newStatus, this.cmsLabelPrefix), |
| 1200 | ]; |
| 1201 | await this.updatePullRequestLabels(pullRequest.number, labels); |
| 1202 | } |
| 1203 | |
| 1204 | async updateUnpublishedEntryStatus(collectionName: string, slug: string, newStatus: string) { |
| 1205 | const contentKey = this.generateContentKey(collectionName, slug); |
no test coverage detected