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

Method getUnpublishedEntrySha

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

Source from the content-addressed store, hash-verified

1025 }
1026
1027 async getUnpublishedEntrySha(collection: string, slug: string) {
1028 const contentKey = generateContentKey(collection, slug);
1029 const branch = branchFromContentKey(contentKey);
1030 const mergeRequest = await this.getBranchMergeRequest(branch);
1031 return mergeRequest.sha;
1032 }
1033}

Callers

nothing calls this directly

Calls 3

getBranchMergeRequestMethod · 0.95
generateContentKeyFunction · 0.90
branchFromContentKeyFunction · 0.90

Tested by

no test coverage detected