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

Method setPullRequestStatus

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

Source from the content-addressed store, hash-verified

1154 }
1155
1156 async setPullRequestStatus(pullRequest: GitHubPull, newStatus: string) {
1157 const labels = [
1158 ...pullRequest.labels
1159 .filter(label => !isCMSLabel(label.name, this.cmsLabelPrefix))
1160 .map(l => l.name),
1161 statusToLabel(newStatus, this.cmsLabelPrefix),
1162 ];
1163 await this.updatePullRequestLabels(pullRequest.number, labels);
1164 }
1165
1166 async updateUnpublishedEntryStatus(collectionName: string, slug: string, newStatus: string) {
1167 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