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

Method getUnpublishedEntrySha

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

Source from the content-addressed store, hash-verified

1520 }
1521
1522 async getUnpublishedEntrySha(collection: string, slug: string) {
1523 const contentKey = this.generateContentKey(collection, slug);
1524 const branch = branchFromContentKey(contentKey);
1525 const pullRequest = await this.getBranchPullRequest(branch);
1526 return pullRequest.head.sha;
1527 }
1528}

Callers 1

getDeployPreviewMethod · 0.45

Calls 3

generateContentKeyMethod · 0.95
getBranchPullRequestMethod · 0.95
branchFromContentKeyFunction · 0.90

Tested by

no test coverage detected