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

Method generateContentKey

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

Source from the content-addressed store, hash-verified

414 }
415
416 generateContentKey(collectionName: string, slug: string) {
417 const contentKey = generateContentKey(collectionName, slug);
418 if (!this.useOpenAuthoring) {
419 return contentKey;
420 }
421
422 return `${this.repo}/${contentKey}`;
423 }
424
425 parseContentKey(contentKey: string) {
426 if (!this.useOpenAuthoring) {

Callers 10

getStatusesMethod · 0.95
editorialWorkflowGitMethod · 0.95
getStatusesMethod · 0.45
unpublishedEntryMethod · 0.45
getBranchMethod · 0.45

Calls 1

generateContentKeyFunction · 0.90

Tested by

no test coverage detected