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

Method generateContentKey

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

Source from the content-addressed store, hash-verified

386 }
387
388 generateContentKey(collectionName: string, slug: string) {
389 const contentKey = generateContentKey(collectionName, slug);
390 if (!this.useOpenAuthoring) {
391 return contentKey;
392 }
393
394 return `${this.repo}/${contentKey}`;
395 }
396
397 parseContentKey(contentKey: string) {
398 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