(id: string)
| 464 | } |
| 465 | |
| 466 | async convertToDraft(id: string): Promise<void> { |
| 467 | core.info(`Converting pull request to draft`) |
| 468 | await this.octokit.graphql({ |
| 469 | query: `mutation($pullRequestId: ID!) { |
| 470 | convertPullRequestToDraft(input: {pullRequestId: $pullRequestId}) { |
| 471 | pullRequest { |
| 472 | isDraft |
| 473 | } |
| 474 | } |
| 475 | }`, |
| 476 | pullRequestId: id |
| 477 | }) |
| 478 | } |
| 479 | } |