Migrate PR #1515 review threads refactoring to go-sdk#1521
Closed
Copilot wants to merge 2 commits intotonytrg/add-review-threadsfrom
Closed
Migrate PR #1515 review threads refactoring to go-sdk#1521Copilot wants to merge 2 commits intotonytrg/add-review-threadsfrom
Copilot wants to merge 2 commits intotonytrg/add-review-threadsfrom
Conversation
Resolves merge conflicts by migrating the review threads refactoring from mark3labs/mcp-go to modelcontextprotocol/go-sdk: - PullRequestRead now uses getGQLClient for get_review_comments - GetPullRequestReviewComments uses GraphQL to fetch review threads - Added GraphQL types for review threads query - Updated tests and toolsnaps for new SDK patterns Co-authored-by: tonytrg <40869903+tonytrg@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix merge conflicts in get_review_comments structure
Migrate PR #1515 review threads refactoring to go-sdk
Dec 2, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes: #1515
Resolves merge conflicts caused by the
mark3labs/mcp-go→modelcontextprotocol/go-sdkmigration. The original PR introduced GraphQL-based review threads forget_review_commentsbut was based on the old MCP library.Changes
pkg/github/pullrequests.go:PullRequestReadnow takesgetGQLClientparameterGetPullRequestReviewCommentsuses GraphQL instead of REST APIreviewThreadsQuery,reviewThreadNode,reviewCommentNode,pageInfoFragmentpkg/github/tools.go: UpdatedPullRequestReadregistration with GraphQL clientFunctional Change (from original PR)
get_review_commentsnow returns review threads with richer metadata:{ "reviewThreads": [ { "isResolved": false, "isOutdated": false, "isCollapsed": false, "comments": [...] } ], "pageInfo": { "hasNextPage": true, "endCursor": "..." }, "totalCount": 5 }Tradeoffs: Brings in all main branch SDK migration changes (173 files) to resolve conflicts cleanly rather than cherry-picking individual changes.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
go.googlesource.com/update-job-proxy /update-job-proxy(dns block)go.yaml.in/update-job-proxy /update-job-proxy(dns block)gopkg.in/update-job-proxy /update-job-proxy(dns block)https://api-github-com-gh.computerqwq.top//advisories/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(http block)https://api-github-com-gh.computerqwq.top/graphql/tmp/go-build1995616253/b001/github.test /tmp/go-build1995616253/b001/github.test -test.testlogfile=/tmp/go-build1995616253/b001/testlog.txt -test.paniconexit0 -test.timeout=10m0s -test.run=Test_GetPullRequest(http block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.