Title: list_pull_requests reports merged pull requests as merged: false · Issue #3467 · github/github-mcp-server · GitHub
Open Graph Title: list_pull_requests reports merged pull requests as merged: false · Issue #3467 · github/github-mcp-server
X Title: list_pull_requests reports merged pull requests as merged: false · Issue #3467 · github/github-mcp-server
Description: Describe the bug list_pull_requests reports merged: false for merged pull requests. This can make an agent classify merged changes as closed without merging when it summarizes a repository's contribution history. The REST list response i...
Open Graph Description: Describe the bug list_pull_requests reports merged: false for merged pull requests. This can make an agent classify merged changes as closed without merging when it summarizes a repository's contri...
X Description: Describe the bug list_pull_requests reports merged: false for merged pull requests. This can make an agent classify merged changes as closed without merging when it summarizes a repository's co...
Opengraph URL: https://github.com/github/github-mcp-server/issues/3467
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"list_pull_requests reports merged pull requests as merged: false","articleBody":"### Describe the bug\n\n`list_pull_requests` reports `merged: false` for merged pull requests. This can make an agent classify merged changes as closed without merging when it summarizes a repository's contribution history.\n\nThe REST list response includes `merged_at` but omits the `merged` boolean. `convertToMinimalPullRequest` currently uses `pr.GetMerged()`, whose default for the omitted field is false. The incorrect value appears in both text and structured output, including when selecting the `merged` field.\n\n### Affected version\n\nReproduced from source at main commit `eb47a99ddb866ca2b8a162920e6bda9521f33ebb`, using Go 1.27.1. This report is based on the REST response and tool-handler regression rather than a Docker release.\n\n### Steps to reproduce the behavior\n\n1. Use `list_pull_requests` with `state: \"all\"` or `state: \"closed\"` for a repository containing merged pull requests.\n2. The REST list returns a merged entry in this shape:\n\n ```json\n {\"number\":3454,\"state\":\"closed\",\"merged_at\":\"2026-10-08T11:25:51Z\"}\n ```\n\n3. The conversion produces `merged: false` despite the non-null merge timestamp. I reproduced the conversion with four merged entries from `github/github-mcp-server` (#3454, #3445, #3440, #3433), and added a regression that passes this raw JSON shape through the list tool and an in-memory MCP session.\n\n### Expected vs actual behavior\n\nExpected: an entry with a valid `merged_at` and no explicit `merged` flag reports `merged: true`.\n\nActual: the tool reports `merged: false`.\n\nOpen entries and closed entries with `merged_at: null` should continue to report false. If the API supplies an explicit `merged` value, it should remain authoritative.\n\n### Logs\n\nThe regression fails on current main for both the full response and selected fields, in text and structured output:\n\n```text\nTest_ListPullRequests_MergedState/merged_list_entry/all_fields\nexpected: true\nactual : false\nTest_ListPullRequests_MergedState/merged_list_entry/selected_fields\nexpected: true\nactual : false\n```\n","author":{"url":"https://github.com/po-et","@type":"Person","name":"po-et"},"datePublished":"2026-10-09T03:30:45Z","url":"https://github.com/github/github-mcp-server/issues/3467"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:539a5b58-a2cf-10c3-db5b-03c419ca50ed |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8106:26D2E5:437EB0:5D3417:6B068587 |
| html-safe-nonce | 19ea66f7839723e6f8dc2ddddc8eacd7578d19b5db7ff1ee095f4f33f5f76478 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MTA2OjI2RDJFNTo0MzdFQjA6NUQzNDE3OjZCMDY4NTg3IiwidmlzaXRvcl9pZCI6IjgzMzc5NzgxMzI3NDEzOTE3NTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 13fc94e835f4c867482afd36e1bb9b1b2ca9aebfa5039b5b6f45160fd64c5c1d |
| hovercard-subject-tag | issue:5772335173 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/github-mcp-server/3467/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a24738e431c4a5adbcf725846be21c49d63ec1d07621c4db03fda7ad035610e2/github/github-mcp-server/issues/3467 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a24738e431c4a5adbcf725846be21c49d63ec1d07621c4db03fda7ad035610e2/github/github-mcp-server/issues/3467 |
| og:image:alt | Describe the bug list_pull_requests reports merged: false for merged pull requests. This can make an agent classify merged changes as closed without merging when it summarizes a repository's contri... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | po-et |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4462ff7ebfd3d551f202659f2423dae617b6849d23b1df6465dc504ef497d14a |
| turbo-cache-control | no-preview |
| go-import | github.com/github/github-mcp-server git https://github.com/github/github-mcp-server.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 942771284 |
| octolytics-dimension-repository_nwo | github/github-mcp-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 942771284 |
| octolytics-dimension-repository_network_root_nwo | github/github-mcp-server |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6d3909414814ff86ce7da4c51a0f4918a13fb41b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width