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

Method getUnpublishedEntrySha

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

Source from the content-addressed store, hash-verified

1559 }
1560
1561 async getUnpublishedEntrySha(collection: string, slug: string) {
1562 const contentKey = this.generateContentKey(collection, slug);
1563 const branch = branchFromContentKey(contentKey);
1564 const pullRequest = await this.getBranchPullRequest(branch);
1565 return pullRequest.head.sha;
1566 }
1567
1568 /**
1569 * How a notes issue is recognised on the host.

Callers 1

getDeployPreviewMethod · 0.45

Calls 3

generateContentKeyMethod · 0.95
getBranchPullRequestMethod · 0.95
branchFromContentKeyFunction · 0.90

Tested by

no test coverage detected