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

Method publishUnpublishedEntry

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

Source from the content-addressed store, hash-verified

725 }
726
727 async publishUnpublishedEntry(collectionName: string, slug: string) {
728 const contentKey = generateContentKey(collectionName, slug);
729 const branch = branchFromContentKey(contentKey);
730 const pullRequest = await this.getBranchPullRequest(branch);
731 await this.completePullRequest(pullRequest);
732 }
733
734 async updatePullRequestLabels(pullRequest: AzurePullRequest, labels: string[]) {
735 const cmsLabels = pullRequest.labels.filter(l => isCMSLabel(l.name, this.cmsLabelPrefix));

Callers

nothing calls this directly

Calls 4

getBranchPullRequestMethod · 0.95
completePullRequestMethod · 0.95
generateContentKeyFunction · 0.90
branchFromContentKeyFunction · 0.90

Tested by

no test coverage detected