(number: number)
| 1387 | } |
| 1388 | |
| 1389 | async closePR(number: number) { |
| 1390 | console.log('%c Deleting PR', 'line-height: 30px;text-align: center;font-weight: bold'); |
| 1391 | const result: Endpoints['PATCH /repos/{owner}/{repo}/pulls/{pull_number}']['response']['data'] = |
| 1392 | await this.request(`${this.originRepoURL}/pulls/${number}`, { |
| 1393 | method: 'PATCH', |
| 1394 | body: JSON.stringify({ |
| 1395 | state: PullRequestState.Closed, |
| 1396 | }), |
| 1397 | }); |
| 1398 | return result; |
| 1399 | } |
| 1400 | |
| 1401 | async mergePR(pullrequest: GitHubPull) { |
| 1402 | console.log('%c Merging PR', 'line-height: 30px;text-align: center;font-weight: bold'); |
no test coverage detected