(pullRequest: GitHubPull, newStatus: string)
| 1154 | } |
| 1155 | |
| 1156 | async setPullRequestStatus(pullRequest: GitHubPull, newStatus: string) { |
| 1157 | const labels = [ |
| 1158 | ...pullRequest.labels |
| 1159 | .filter(label => !isCMSLabel(label.name, this.cmsLabelPrefix)) |
| 1160 | .map(l => l.name), |
| 1161 | statusToLabel(newStatus, this.cmsLabelPrefix), |
| 1162 | ]; |
| 1163 | await this.updatePullRequestLabels(pullRequest.number, labels); |
| 1164 | } |
| 1165 | |
| 1166 | async updateUnpublishedEntryStatus(collectionName: string, slug: string, newStatus: string) { |
| 1167 | const contentKey = this.generateContentKey(collectionName, slug); |
no test coverage detected