Retrieve the pull request from Github.
(github: Octokit)
| 75 | |
| 76 | /** Retrieve the pull request from Github. */ |
| 77 | static async get(github: Octokit) { |
| 78 | const pullRequest = await github.graphql<typeof PR_SCHEMA>(query(PR_SCHEMA).toString()); |
| 79 | return new PullRequest(github, pullRequest.repository.pullRequest); |
| 80 | } |
| 81 | |
| 82 | private constructor( |
| 83 | private github: Octokit, |
no test coverage detected