Migrate PR #1515 review threads refactoring to go-sdk #1521
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//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/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.