MCPcopy Create free account
hub / github.com/decaporg/decap-cms / deleteUnpublishedEntry

Method deleteUnpublishedEntry

packages/decap-cms-backend-azure/src/API.ts:726–731  ·  view source on GitHub ↗
(collectionName: string, slug: string)

Source from the content-addressed store, hash-verified

724 }
725
726 async deleteUnpublishedEntry(collectionName: string, slug: string) {
727 const contentKey = generateContentKey(collectionName, slug);
728 const branch = branchFromContentKey(contentKey);
729 const pullRequest = await this.getBranchPullRequest(branch);
730 await this.abandonPullRequest(pullRequest);
731 }
732
733 async publishUnpublishedEntry(collectionName: string, slug: string) {
734 const contentKey = generateContentKey(collectionName, slug);

Callers

nothing calls this directly

Calls 4

getBranchPullRequestMethod · 0.95
abandonPullRequestMethod · 0.95
generateContentKeyFunction · 0.90
branchFromContentKeyFunction · 0.90

Tested by

no test coverage detected