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

Method deleteUnpublishedEntry

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

Source from the content-addressed store, hash-verified

718 }
719
720 async deleteUnpublishedEntry(collectionName: string, slug: string) {
721 const contentKey = generateContentKey(collectionName, slug);
722 const branch = branchFromContentKey(contentKey);
723 const pullRequest = await this.getBranchPullRequest(branch);
724 await this.abandonPullRequest(pullRequest);
725 }
726
727 async publishUnpublishedEntry(collectionName: string, slug: string) {
728 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