Skip to content

Bump go-github to v72.0.0 #456

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 2, 2025
Merged

Conversation

radar07
Copy link
Contributor

@radar07 radar07 commented May 30, 2025

Closes: #455

I didn't encounter any errors while bumping the version. The tests are passing in my local. 😄

@radar07 radar07 requested a review from a team as a code owner May 30, 2025 15:32
@radar07 radar07 marked this pull request as draft May 30, 2025 15:32
@radar07 radar07 force-pushed the bump-go-github-v72 branch 2 times, most recently from e6a3409 to 888dfb6 Compare May 30, 2025 16:10
@@ -451,11 +451,11 @@ func ListIssues(getClient GetClientFn, t translations.TranslationHelperFunc) (to
}

if page, ok := request.GetArguments()["page"].(float64); ok {
opts.Page = int(page)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The ListCursorOptions is added to IssueListOptions in v72 which has the same fields(Page and PerPage) like ListOptions. This line is changed to avoid ambiguity error.

@radar07 radar07 force-pushed the bump-go-github-v72 branch from 888dfb6 to 966807b Compare May 30, 2025 17:11
@radar07 radar07 marked this pull request as ready for review May 30, 2025 20:05
Copy link
Collaborator

@williammartin williammartin left a comment

Choose a reason for hiding this comment

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

LGTM, passes all the e2e tests:

➜  github-mcp-server git:(bump-go-github-v72) ✗ GOMAXPROCS=1 GITHUB_MCP_SERVER_E2E_HOST=https://github.com GITHUB_MCP_SERVER_E2E_TOKEN=$(gh auth token) go test -v -count=1 --tags e2e ./e2e

go: downloading github.com/google/go-github/v72 v72.0.0
=== RUN   TestGetMe
=== PAUSE TestGetMe
=== RUN   TestToolsets
=== PAUSE TestToolsets
=== RUN   TestTags
=== PAUSE TestTags
=== RUN   TestFileDeletion
=== PAUSE TestFileDeletion
=== RUN   TestDirectoryDeletion
=== PAUSE TestDirectoryDeletion
=== RUN   TestRequestCopilotReview
=== PAUSE TestRequestCopilotReview
=== RUN   TestAssignCopilotToIssue
=== PAUSE TestAssignCopilotToIssue
=== RUN   TestPullRequestAtomicCreateAndSubmit
=== PAUSE TestPullRequestAtomicCreateAndSubmit
=== RUN   TestPullRequestReviewCommentSubmit
=== PAUSE TestPullRequestReviewCommentSubmit
=== RUN   TestPullRequestReviewDeletion
=== PAUSE TestPullRequestReviewDeletion
=== CONT  TestGetMe
    e2e_test.go:80: Building Docker image for e2e tests...
    e2e_test.go:163: Starting Stdio MCP client...
--- PASS: TestGetMe (16.27s)
=== CONT  TestPullRequestReviewDeletion
    e2e_test.go:163: Starting Stdio MCP client...
    e2e_test.go:1468: Getting current user...
    e2e_test.go:1497: Creating repository williammartin/github-mcp-server-e2e-TestPullRequestReviewDeletion-1748854222631...
    e2e_test.go:1521: Creating branch in williammartin/github-mcp-server-e2e-TestPullRequestReviewDeletion-1748854222631...
    e2e_test.go:1538: Creating commit with new file in williammartin/github-mcp-server-e2e-TestPullRequestReviewDeletion-1748854222631...
    e2e_test.go:1555: Creating pull request in williammartin/github-mcp-server-e2e-TestPullRequestReviewDeletion-1748854222631...
    e2e_test.go:1570: Creating pending review for pull request in williammartin/github-mcp-server-e2e-TestPullRequestReviewDeletion-1748854222631...
    e2e_test.go:1588: Getting reviews for pull request in williammartin/github-mcp-server-e2e-TestPullRequestReviewDeletion-1748854222631...
    e2e_test.go:1615: Deleting review for pull request in williammartin/github-mcp-server-e2e-TestPullRequestReviewDeletion-1748854222631...
    e2e_test.go:1621: Getting reviews for pull request in williammartin/github-mcp-server-e2e-TestPullRequestReviewDeletion-1748854222631...
    e2e_test.go:1506: Deleting repository williammartin/github-mcp-server-e2e-TestPullRequestReviewDeletion-1748854222631...
--- PASS: TestPullRequestReviewDeletion (6.68s)
=== CONT  TestPullRequestReviewCommentSubmit
    e2e_test.go:163: Starting Stdio MCP client...
    e2e_test.go:1223: Getting current user...
    e2e_test.go:1252: Creating repository williammartin/github-mcp-server-e2e-TestPullRequestReviewCommentSubmit-1748854229313...
    e2e_test.go:1276: Creating branch in williammartin/github-mcp-server-e2e-TestPullRequestReviewCommentSubmit-1748854229313...
    e2e_test.go:1293: Creating commit with new file in williammartin/github-mcp-server-e2e-TestPullRequestReviewCommentSubmit-1748854229313...
    e2e_test.go:1322: Creating pull request in williammartin/github-mcp-server-e2e-TestPullRequestReviewCommentSubmit-1748854229313...
    e2e_test.go:1337: Creating pending review for pull request in williammartin/github-mcp-server-e2e-TestPullRequestReviewCommentSubmit-1748854229313...
    e2e_test.go:1358: Adding file review comment to pull request in williammartin/github-mcp-server-e2e-TestPullRequestReviewCommentSubmit-1748854229313...
    e2e_test.go:1378: Adding single line review comment to pull request in williammartin/github-mcp-server-e2e-TestPullRequestReviewCommentSubmit-1748854229313...
    e2e_test.go:1400: Adding multi line review comment to pull request in williammartin/github-mcp-server-e2e-TestPullRequestReviewCommentSubmit-1748854229313...
    e2e_test.go:1416: Submitting review for pull request in williammartin/github-mcp-server-e2e-TestPullRequestReviewCommentSubmit-1748854229313...
    e2e_test.go:1430: Getting reviews for pull request in williammartin/github-mcp-server-e2e-TestPullRequestReviewCommentSubmit-1748854229313...
    e2e_test.go:1261: Deleting repository williammartin/github-mcp-server-e2e-TestPullRequestReviewCommentSubmit-1748854229313...
--- PASS: TestPullRequestReviewCommentSubmit (10.47s)
=== CONT  TestPullRequestAtomicCreateAndSubmit
    e2e_test.go:163: Starting Stdio MCP client...
    e2e_test.go:1063: Getting current user...
    e2e_test.go:1092: Creating repository williammartin/github-mcp-server-e2e-TestPullRequestAtomicCreateAndSubmit-1748854239725...
    e2e_test.go:1116: Creating branch in williammartin/github-mcp-server-e2e-TestPullRequestAtomicCreateAndSubmit-1748854239725...
    e2e_test.go:1133: Creating commit with new file in williammartin/github-mcp-server-e2e-TestPullRequestAtomicCreateAndSubmit-1748854239725...
    e2e_test.go:1162: Creating pull request in williammartin/github-mcp-server-e2e-TestPullRequestAtomicCreateAndSubmit-1748854239725...
    e2e_test.go:1179: Creating and submitting review for pull request in williammartin/github-mcp-server-e2e-TestPullRequestAtomicCreateAndSubmit-1748854239725...
    e2e_test.go:1193: Getting reviews for pull request in williammartin/github-mcp-server-e2e-TestPullRequestAtomicCreateAndSubmit-1748854239725...
    e2e_test.go:1101: Deleting repository williammartin/github-mcp-server-e2e-TestPullRequestAtomicCreateAndSubmit-1748854239725...
--- PASS: TestPullRequestAtomicCreateAndSubmit (5.35s)
=== CONT  TestAssignCopilotToIssue
    e2e_test.go:163: Starting Stdio MCP client...
    e2e_test.go:960: Getting current user...
    e2e_test.go:989: Creating repository williammartin/github-mcp-server-e2e-TestAssignCopilotToIssue-1748854245089...
    e2e_test.go:1012: Creating issue in williammartin/github-mcp-server-e2e-TestAssignCopilotToIssue-1748854245089...
    e2e_test.go:1026: Assigning copilot to issue in williammartin/github-mcp-server-e2e-TestAssignCopilotToIssue-1748854245089...
    e2e_test.go:998: Deleting repository williammartin/github-mcp-server-e2e-TestAssignCopilotToIssue-1748854245089...
--- PASS: TestAssignCopilotToIssue (3.83s)
=== CONT  TestRequestCopilotReview
    e2e_test.go:163: Starting Stdio MCP client...
    e2e_test.go:812: Getting current user...
    e2e_test.go:841: Creating repository williammartin/github-mcp-server-e2e-TestRequestCopilotReview-1748854248935...
    e2e_test.go:865: Creating branch in williammartin/github-mcp-server-e2e-TestRequestCopilotReview-1748854248935...
    e2e_test.go:882: Creating commit with new file in williammartin/github-mcp-server-e2e-TestRequestCopilotReview-1748854248935...
    e2e_test.go:910: Creating pull request in williammartin/github-mcp-server-e2e-TestRequestCopilotReview-1748854248935...
    e2e_test.go:924: Requesting Copilot review for pull request in williammartin/github-mcp-server-e2e-TestRequestCopilotReview-1748854248935...
    e2e_test.go:936: Getting reviews for pull request in williammartin/github-mcp-server-e2e-TestRequestCopilotReview-1748854248935...
    e2e_test.go:850: Deleting repository williammartin/github-mcp-server-e2e-TestRequestCopilotReview-1748854248935...
--- PASS: TestRequestCopilotReview (4.88s)
=== CONT  TestDirectoryDeletion
    e2e_test.go:163: Starting Stdio MCP client...
    e2e_test.go:614: Getting current user...
    e2e_test.go:642: Creating repository williammartin/github-mcp-server-e2e-TestDirectoryDeletion-1748854253821...
    e2e_test.go:666: Creating branch in williammartin/github-mcp-server-e2e-TestDirectoryDeletion-1748854253821...
    e2e_test.go:683: Creating commit with new file in williammartin/github-mcp-server-e2e-TestDirectoryDeletion-1748854253821...
    e2e_test.go:701: Getting file contents in williammartin/github-mcp-server-e2e-TestDirectoryDeletion-1748854253821...
    e2e_test.go:729: Deleting directory in williammartin/github-mcp-server-e2e-TestDirectoryDeletion-1748854253821...
    e2e_test.go:743: Listing commits in williammartin/github-mcp-server-e2e-TestDirectoryDeletion-1748854253821...
    e2e_test.go:777: Getting commit williammartin/github-mcp-server-e2e-TestDirectoryDeletion-1748854253821:282be2c5c8ee5f4edc38c37687d3d0c945e5a5c3...
    e2e_test.go:651: Deleting repository williammartin/github-mcp-server-e2e-TestDirectoryDeletion-1748854253821...
--- PASS: TestDirectoryDeletion (5.05s)
=== CONT  TestFileDeletion
    e2e_test.go:163: Starting Stdio MCP client...
    e2e_test.go:422: Getting current user...
    e2e_test.go:450: Creating repository williammartin/github-mcp-server-e2e-TestFileDeletion-1748854258880...
    e2e_test.go:474: Creating branch in williammartin/github-mcp-server-e2e-TestFileDeletion-1748854258880...
    e2e_test.go:491: Creating commit with new file in williammartin/github-mcp-server-e2e-TestFileDeletion-1748854258880...
    e2e_test.go:506: Getting file contents in williammartin/github-mcp-server-e2e-TestFileDeletion-1748854258880...
    e2e_test.go:534: Deleting file in williammartin/github-mcp-server-e2e-TestFileDeletion-1748854258880...
    e2e_test.go:548: Listing commits in williammartin/github-mcp-server-e2e-TestFileDeletion-1748854258880...
    e2e_test.go:582: Getting commit williammartin/github-mcp-server-e2e-TestFileDeletion-1748854258880:f64caba529d28f4cac1a07b1f435331d1fccc653...
    e2e_test.go:459: Deleting repository williammartin/github-mcp-server-e2e-TestFileDeletion-1748854258880...
--- PASS: TestFileDeletion (5.30s)
=== CONT  TestTags
    e2e_test.go:163: Starting Stdio MCP client...
    e2e_test.go:284: Getting current user...
    e2e_test.go:313: Creating repository williammartin/github-mcp-server-e2e-TestTags-1748854264147...
    e2e_test.go:330: Creating tag williammartin/github-mcp-server-e2e-TestTags-1748854264147:v0.0.1...
    e2e_test.go:360: Listing tags for williammartin/github-mcp-server-e2e-TestTags-1748854264147...
    e2e_test.go:393: Getting tag williammartin/github-mcp-server-e2e-TestTags-1748854264147:v0.0.1...
    e2e_test.go:322: Deleting repository williammartin/github-mcp-server-e2e-TestTags-1748854264147...
--- PASS: TestTags (3.49s)
=== CONT  TestToolsets
    e2e_test.go:163: Starting Stdio MCP client...
--- PASS: TestToolsets (0.22s)
PASS
ok      github.com/github/github-mcp-server/e2e 61.852s

@williammartin williammartin merged commit c7a872b into github:main Jun 2, 2025
9 checks passed
@williammartin
Copy link
Collaborator

@radar07 just checking something, did you change the license files yourself rather than running ./script/licenses? Trying to understand why I had to do #467

@radar07 radar07 deleted the bump-go-github-v72 branch June 3, 2025 13:26
@radar07
Copy link
Contributor Author

radar07 commented Jun 3, 2025

Yes, I did it manually since I'm unaware of this thing. ごめんなさい 🙇

@williammartin
Copy link
Collaborator

Not to worry. It's good to know that our workflow that checks this didn't handle this case correctly.

run: ./script/licenses-check

https://github.com/github/github-mcp-server/blob/c2d5b433cf3f1a0fe303129578550c90300927c5/script/licenses-check

I think we should probably just do a git diff here before and after running ./script/licenses rather than trying to diff specific .md files.

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.

Upgrade go-github to v72
2 participants