Skip to content

Conversation

@stephenotalora
Copy link
Contributor

@stephenotalora stephenotalora commented Nov 4, 2025

Towards: https://github.com/github/memex/issues/20995

This PR upgrades our dependency to google/go-github@v77. The update impacts 48 files, primarily due to adjustments needed for API changes and deprecations introduced in the latest go-github release.

As part of the upgrade, I refactored a few areas that relied on outdated API calls, updated method signatures, and removed deprecated patterns while keeping the overall code changes minimal to ensure compatibility with the new version.

In the process, I also addressed CI requirements related to license compliance. A few commits were specifically focused on updating license files and resolving issues flagged during the build.

While this is a large PR, opting for a full upgrade (rather than selective patching) minimizes the overall diff of actual code changes. This approach should make the changes easier to review and reason about.

Updates to the MCP server based on the v77 release will be handled separately as part of #1358.

If you spot anything unexpected or would like clarification—especially around the license or refactor adjustments—please let me know!

@stephenotalora stephenotalora changed the title update to google/go-github@v77 Update to google/go-github@v77 Nov 4, 2025
@stephenotalora stephenotalora force-pushed the stephenotalora/mcp-projects-v77 branch 2 times, most recently from 0a402d8 to fc1471d Compare November 4, 2025 21:27
@stephenotalora stephenotalora force-pushed the stephenotalora/mcp-projects-v77 branch from fc1471d to fce10ae Compare November 4, 2025 21:31
@stephenotalora stephenotalora self-assigned this Nov 4, 2025
@stephenotalora stephenotalora marked this pull request as ready for review November 4, 2025 21:43
@stephenotalora stephenotalora requested a review from a team as a code owner November 4, 2025 21:43
Copilot AI review requested due to automatic review settings November 4, 2025 21:43
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR upgrades the go-github library from v76 to v77, along with necessary API adaptations for breaking changes in the Projects API.

  • Updated dependency from github.com/google/go-github/v76 to v77.0.0
  • Adapted Projects API calls to use new method names and parameter types
  • Updated all import statements across 40+ files

Reviewed Changes

Copilot reviewed 46 out of 48 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
go.mod, go.sum Updated go-github dependency from v76 to v77
third-party-licenses.*.md Updated license references for v77
third-party/github.com/google/go-github/v77/github/LICENSE Added BSD-3-Clause license file for v77
third-party/github.com/github/github-mcp-server/LICENSE Removed MIT license file
pkg/github/projects.go Updated API method names and parameter types for v77 compatibility
pkg/github/.go, pkg/raw/.go, pkg/errors/*.go Updated imports from v76 to v77
internal/ghmcp/server.go, cmd/github-mcp-server/generate_docs.go, e2e/e2e_test.go Updated imports from v76 to v77

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants