MCPcopy Index your code
hub / github.com/peter-evans/create-pull-request / convertToDraft

Method convertToDraft

src/github-helper.ts:466–478  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

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}

Callers 1

createPullRequestFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected