(pullRequest: GitHubPull, newStatus: string)
| 1179 | } |
| 1180 | |
| 1181 | async setPullRequestStatus(pullRequest: GitHubPull, newStatus: string) { |
| 1182 | const labels = [ |
| 1183 | ...pullRequest.labels |
| 1184 | .filter(label => !isCMSLabel(label.name, this.cmsLabelPrefix)) |
| 1185 | .map(l => l.name), |
| 1186 | statusToLabel(newStatus, this.cmsLabelPrefix), |
| 1187 | ]; |
| 1188 | await this.updatePullRequestLabels(pullRequest.number, labels); |
| 1189 | } |
| 1190 | |
| 1191 | async updateUnpublishedEntryStatus(collectionName: string, slug: string, newStatus: string) { |
| 1192 | const contentKey = this.generateContentKey(collectionName, slug); |
no test coverage detected