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

Method generateContentKey

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

Source from the content-addressed store, hash-verified

287 }
288
289 generateContentKey(collectionName: string, slug: string) {
290 const contentKey = generateContentKey(collectionName, slug);
291 if (!this.useOpenAuthoring) {
292 return contentKey;
293 }
294 return `${this.repo}/${contentKey}`;
295 }
296
297 parseContentKey(contentKey: string) {
298 if (!this.useOpenAuthoring) {

Callers 8

editorialWorkflowGitMethod · 0.95
unpublishedEntryMethod · 0.45
API.spec.jsFile · 0.45

Calls 1

generateContentKeyFunction · 0.90

Tested by

no test coverage detected