(collectionName: string, slug: string)
| 1219 | } |
| 1220 | |
| 1221 | async deleteUnpublishedEntry(collectionName: string, slug: string) { |
| 1222 | const contentKey = this.generateContentKey(collectionName, slug); |
| 1223 | const branch = branchFromContentKey(contentKey); |
| 1224 | |
| 1225 | const pullRequest = await this.getBranchPullRequest(branch); |
| 1226 | if (pullRequest.number !== MOCK_PULL_REQUEST) { |
| 1227 | await this.closePR(pullRequest.number); |
| 1228 | } |
| 1229 | await this.deleteBranch(branch); |
| 1230 | } |
| 1231 | |
| 1232 | async publishUnpublishedEntry(collectionName: string, slug: string) { |
| 1233 | const contentKey = this.generateContentKey(collectionName, slug); |
no test coverage detected