(collectionName: string, slug: string)
| 1194 | } |
| 1195 | |
| 1196 | async deleteUnpublishedEntry(collectionName: string, slug: string) { |
| 1197 | const contentKey = this.generateContentKey(collectionName, slug); |
| 1198 | const branch = branchFromContentKey(contentKey); |
| 1199 | |
| 1200 | const pullRequest = await this.getBranchPullRequest(branch); |
| 1201 | if (pullRequest.number !== MOCK_PULL_REQUEST) { |
| 1202 | await this.closePR(pullRequest.number); |
| 1203 | } |
| 1204 | await this.deleteBranch(branch); |
| 1205 | } |
| 1206 | |
| 1207 | async publishUnpublishedEntry(collectionName: string, slug: string) { |
| 1208 | const contentKey = this.generateContentKey(collectionName, slug); |
nothing calls this directly
no test coverage detected