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

Method getUnpublishedEntrySha

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

Source from the content-addressed store, hash-verified

1546 }
1547
1548 async getUnpublishedEntrySha(collection: string, slug: string) {
1549 const contentKey = this.generateContentKey(collection, slug);
1550 const branch = branchFromContentKey(contentKey);
1551 const pullRequest = await this.getBranchPullRequest(branch);
1552 return pullRequest.head.sha;
1553 }
1554
1555 /**
1556 * Constants for note formatting to aid with PR comment to note conversion

Callers 1

getDeployPreviewMethod · 0.45

Calls 3

generateContentKeyMethod · 0.95
getBranchPullRequestMethod · 0.95
branchFromContentKeyFunction · 0.90

Tested by

no test coverage detected