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

Method setPullRequestStatus

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

Source from the content-addressed store, hash-verified

1179 }
1180
1181 async setPullRequestStatus(pullRequest: GitHubPull, newStatus: string) {
1182 const labels = [
1183 ...pullRequest.labels
1184 .filter(label => !isCMSLabel(label.name, this.cmsLabelPrefix))
1185 .map(l => l.name),
1186 statusToLabel(newStatus, this.cmsLabelPrefix),
1187 ];
1188 await this.updatePullRequestLabels(pullRequest.number, labels);
1189 }
1190
1191 async updateUnpublishedEntryStatus(collectionName: string, slug: string, newStatus: string) {
1192 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