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

Method deleteUnpublishedEntry

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

Source from the content-addressed store, hash-verified

1005 }
1006
1007 async deleteUnpublishedEntry(collectionName: string, slug: string) {
1008 const contentKey = generateContentKey(collectionName, slug);
1009 const branch = branchFromContentKey(contentKey);
1010 const mergeRequest = await this.getBranchMergeRequest(branch);
1011 await this.closeMergeRequest(mergeRequest);
1012 await this.deleteBranch(branch);
1013 }
1014
1015 async getMergeRequestStatues(mergeRequest: GitLabMergeRequest, branch: string) {
1016 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