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

Method openPR

packages/decap-cms-backend-github/src/API.ts:1364–1374  ·  view source on GitHub ↗
(number: number)

Source from the content-addressed store, hash-verified

1362 }
1363
1364 async openPR(number: number) {
1365 console.log('%c Re-opening PR', 'line-height: 30px;text-align: center;font-weight: bold');
1366 const result: Endpoints['PATCH /repos/{owner}/{repo}/pulls/{pull_number}']['response']['data'] =
1367 await this.request(`${this.originRepoURL}/pulls/${number}`, {
1368 method: 'PATCH',
1369 body: JSON.stringify({
1370 state: PullRequestState.Open,
1371 }),
1372 });
1373 return result;
1374 }
1375
1376 async closePR(number: number) {
1377 console.log('%c Deleting PR', 'line-height: 30px;text-align: center;font-weight: bold');

Callers 1

Calls 1

requestMethod · 0.95

Tested by

no test coverage detected