github_get_pull_request
Why can a pull request not merge? Reads one pull request: state, draft, mergeable and mergeable_state, head and base branch and sha, how far the head is ahead of and behind its base, the base branch's required status checks (classic protection and rulesets) with each one's state on the head (passing, failing, pending, missing, unknown), whether the base requires up-to-date branches, the approving reviews it needs and has, the repository's Ankra merge train (on, off, not_connected) with this pull request's place on it or why it left, and merge when green: a pending request (what it waits on) and whether the repository's binding honours one. blocking_reasons lists only causes these reads establish; unknowns lists what could not be read. Read-only. Call it before saying why a pull request is blocked.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository name. Also accepts the combined 'owner/name' form. | |
| owner | No | Repository owner. May be omitted when the repository name is unambiguous in this organisation, or embedded in 'repo' as 'owner/name'. | |
| pull_request_number | Yes | The pull request's number within the repository. |