Skip to content

Commit 5e39ec8

Browse files
build(deps): upgrade go-github to v92.0.0 (#3381)
Migrate all go-github imports and issue comment requests while preserving MCP schemas and payloads. Let v92 escape ruleset branch names exactly once. Refresh dependency license reports and narrowly retain the supported Ptr helper for compatibility with the pinned linter. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent fbeba3c commit 5e39ec8

78 files changed

Lines changed: 89 additions & 83 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.golangci.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ linters:
3131
- examples$
3232
- internal/githubv4mock
3333
rules:
34+
# v2.9.0 misreports SA4006 for Go 1.26 new(expr); retain go-github's helper until the linter is upgraded.
35+
- linters:
36+
- staticcheck
37+
text: '(go)?github\.Ptr is deprecated: use the new builtin instead\.'
3438
- linters:
3539
- revive
3640
text: "var-naming: avoid package names that conflict with Go standard library package names"

‎e2e/e2e_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"github.com/github/github-mcp-server/pkg/github"
2121
"github.com/github/github-mcp-server/pkg/translations"
2222
"github.com/github/github-mcp-server/pkg/utils"
23-
gogithub "github.com/google/go-github/v89/github"
23+
gogithub "github.com/google/go-github/v92/github"
2424
"github.com/modelcontextprotocol/go-sdk/mcp"
2525
"github.com/stretchr/testify/require"
2626
)

‎go.mod‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.26.8
55
require (
66
github.com/go-chi/chi/v5 v5.3.2
77
github.com/go-viper/mapstructure/v2 v2.5.0
8-
github.com/google/go-github/v89 v89.0.1-0.20260728185857-34349a88bac3
8+
github.com/google/go-github/v92 v92.0.0
99
github.com/google/jsonschema-go v0.4.3
1010
github.com/josephburnett/jd/v2 v2.5.0
1111
github.com/lithammer/fuzzysearch v1.1.8

‎go.sum‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArs
1414
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
1515
github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
1616
github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
17-
github.com/google/go-github/v89 v89.0.1-0.20260728185857-34349a88bac3 h1:0a/p9KtPso8UBauBD/p9Go1oaZrrEydBNHjaaKkSHJo=
18-
github.com/google/go-github/v89 v89.0.1-0.20260728185857-34349a88bac3/go.mod h1:QLcbU0ipeAqQuR5KSg8c2lql4Qk1EwJ2dWz/0rP4Nho=
17+
github.com/google/go-github/v92 v92.0.0 h1:4vW4RVffwIvoEfIA4RX09mRSB47qQX557/2+HgeWRRg=
18+
github.com/google/go-github/v92 v92.0.0/go.mod h1:w3CH62ZcmRfvW1cdXpyTztSOVMtdjxtKpgo0GouLmjY=
1919
github.com/google/go-querystring v1.2.0 h1:yhqkPbu2/OH+V9BfpCVPZkNmUXhb2gBxJArfhIxNtP0=
2020
github.com/google/go-querystring v1.2.0/go.mod h1:8IFJqpSRITyJ8QhQ13bmbeMBDfmeEJZD5A0egEOmkqU=
2121
github.com/google/jsonschema-go v0.4.3 h1:/DBOLZTfDow7pe2GmaJNhltueGTtDKICi8V8p+DQPd0=

‎internal/ghmcp/server.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
"github.com/github/github-mcp-server/pkg/scopes"
2828
"github.com/github/github-mcp-server/pkg/translations"
2929
"github.com/github/github-mcp-server/pkg/utils"
30-
gogithub "github.com/google/go-github/v89/github"
30+
gogithub "github.com/google/go-github/v92/github"
3131
"github.com/modelcontextprotocol/go-sdk/mcp"
3232
"github.com/shurcooL/githubv4"
3333
)

‎pkg/errors/error.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111

1212
"github.com/github/github-mcp-server/pkg/sanitize"
1313
"github.com/github/github-mcp-server/pkg/utils"
14-
"github.com/google/go-github/v89/github"
14+
"github.com/google/go-github/v92/github"
1515
"github.com/modelcontextprotocol/go-sdk/mcp"
1616
)
1717

‎pkg/errors/error_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package errors
33
import (
44
"context"
55
"fmt"
6-
"github.com/google/go-github/v89/github"
6+
"github.com/google/go-github/v92/github"
77
"github.com/modelcontextprotocol/go-sdk/mcp"
88
"github.com/stretchr/testify/assert"
99
"github.com/stretchr/testify/require"

‎pkg/github/actions.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
"github.com/github/github-mcp-server/pkg/scopes"
1818
"github.com/github/github-mcp-server/pkg/translations"
1919
"github.com/github/github-mcp-server/pkg/utils"
20-
"github.com/google/go-github/v89/github"
20+
"github.com/google/go-github/v92/github"
2121
"github.com/google/jsonschema-go/jsonschema"
2222
"github.com/modelcontextprotocol/go-sdk/mcp"
2323
)

‎pkg/github/actions_minimal_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"testing"
66
"time"
77

8-
"github.com/google/go-github/v89/github"
8+
"github.com/google/go-github/v92/github"
99
"github.com/stretchr/testify/assert"
1010
"github.com/stretchr/testify/require"
1111
)

‎pkg/github/actions_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99

1010
"github.com/github/github-mcp-server/internal/toolsnaps"
1111
"github.com/github/github-mcp-server/pkg/translations"
12-
"github.com/google/go-github/v89/github"
12+
"github.com/google/go-github/v92/github"
1313
"github.com/google/jsonschema-go/jsonschema"
1414
"github.com/stretchr/testify/assert"
1515
"github.com/stretchr/testify/require"

0 commit comments

Comments
 (0)