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

Method generateContentKey

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

Source from the content-addressed store, hash-verified

411 }
412
413 generateContentKey(collectionName: string, slug: string) {
414 const contentKey = generateContentKey(collectionName, slug);
415 if (!this.useOpenAuthoring) {
416 return contentKey;
417 }
418
419 return `${this.repo}/${contentKey}`;
420 }
421
422 parseContentKey(contentKey: string) {
423 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