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

Method openPR

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

Source from the content-addressed store, hash-verified

1375 }
1376
1377 async openPR(number: number) {
1378 console.log('%c Re-opening PR', 'line-height: 30px;text-align: center;font-weight: bold');
1379 const result: Endpoints['PATCH /repos/{owner}/{repo}/pulls/{pull_number}']['response']['data'] =
1380 await this.request(`${this.originRepoURL}/pulls/${number}`, {
1381 method: 'PATCH',
1382 body: JSON.stringify({
1383 state: PullRequestState.Open,
1384 }),
1385 });
1386 return result;
1387 }
1388
1389 async closePR(number: number) {
1390 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