get_github_pull_request
Fetch a single GitHub pull request by its ID from OpenProject, returning the mirrored row or an empty result when it does not exist or the integration is unset.
Instructions
Get a single GitHub pull request by its own id.
GitHub pull requests are read-only mirror rows synced by OpenProject's own GitHub App integration -- never creatable via this API. An empty or 404 result can mean either the pull request doesn't exist, or the GitHub App integration isn't configured on this instance; OpenProject's API does not distinguish these cases.
Unlike work-package-scoped lookups in this domain, this global lookup relies on OpenProject's own visibility check (whether the linked work package is visible to the API token), not on this MCP's OPENPROJECT_READ_PROJECTS allowlist -- the pull request payload carries no project link for this MCP to check against.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| github_pull_request_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| body | Yes | ||
| draft | Yes | ||
| state | Yes | ||
| title | Yes | ||
| author | Yes | ||
| labels | Yes | ||
| merged | Yes | ||
| number | Yes | ||
| html_url | Yes | ||
| merged_at | Yes | ||
| merged_by | Yes | ||
| created_at | Yes | ||
| repository | Yes | ||
| updated_at | Yes | ||
| body_length | Yes | ||
| body_truncated | Yes | ||
| comments_count | Yes | ||
| additions_count | Yes | ||
| deletions_count | Yes | ||
| github_updated_at | Yes | ||
| changed_files_count | Yes | ||
| repository_html_url | Yes | ||
| review_comments_count | Yes |