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

Method getUnpublishedEntrySha

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

Source from the content-addressed store, hash-verified

1035 }
1036
1037 async getUnpublishedEntrySha(collection: string, slug: string) {
1038 const contentKey = generateContentKey(collection, slug);
1039 const branch = branchFromContentKey(contentKey);
1040 const mergeRequest = await this.getBranchMergeRequest(branch);
1041 return mergeRequest.sha;
1042 }
1043}

Callers

nothing calls this directly

Calls 3

getBranchMergeRequestMethod · 0.95
generateContentKeyFunction · 0.90
branchFromContentKeyFunction · 0.90

Tested by

no test coverage detected