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

Method setPullRequestStatus

packages/decap-cms-backend-github/src/API.ts:1194–1202  ·  view source on GitHub ↗
(pullRequest: GitHubPull, newStatus: string)

Source from the content-addressed store, hash-verified

1192 }
1193
1194 async setPullRequestStatus(pullRequest: GitHubPull, newStatus: string) {
1195 const labels = [
1196 ...pullRequest.labels
1197 .filter(label => !isCMSLabel(label.name, this.cmsLabelPrefix))
1198 .map(l => l.name),
1199 statusToLabel(newStatus, this.cmsLabelPrefix),
1200 ];
1201 await this.updatePullRequestLabels(pullRequest.number, labels);
1202 }
1203
1204 async updateUnpublishedEntryStatus(collectionName: string, slug: string, newStatus: string) {
1205 const contentKey = this.generateContentKey(collectionName, slug);

Callers 3

editorialWorkflowGitMethod · 0.95

Calls 5

isCMSLabelFunction · 0.90
statusToLabelFunction · 0.90
mapMethod · 0.80
filterMethod · 0.80

Tested by

no test coverage detected