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

Method deleteUnpublishedEntry

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

Source from the content-addressed store, hash-verified

995 }
996
997 async deleteUnpublishedEntry(collectionName: string, slug: string) {
998 const contentKey = generateContentKey(collectionName, slug);
999 const branch = branchFromContentKey(contentKey);
1000 const mergeRequest = await this.getBranchMergeRequest(branch);
1001 await this.closeMergeRequest(mergeRequest);
1002 await this.deleteBranch(branch);
1003 }
1004
1005 async getMergeRequestStatues(mergeRequest: GitLabMergeRequest, branch: string) {
1006 const statuses: GitLabCommitStatus[] = await this.requestJSON({

Callers

nothing calls this directly

Calls 5

getBranchMergeRequestMethod · 0.95
closeMergeRequestMethod · 0.95
deleteBranchMethod · 0.95
generateContentKeyFunction · 0.90
branchFromContentKeyFunction · 0.90

Tested by

no test coverage detected