Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6c4bbf0

Browse files
chore: remove deprecated func
1 parent81cc812 commit6c4bbf0

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

‎go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ require (
88
github.com/sirupsen/logrusv1.9.3
99
github.com/spf13/cobrav1.9.1
1010
github.com/spf13/viperv1.19.0
11+
github.com/aws/smithy-gov1.22.3
1112
)
1213

1314
require (

‎go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
github.com/aws/smithy-gov1.22.3 h1:Z//5NuZCSW6R4PhQ93hShNbyBbn8BWCmCVCt+Q8Io5k=
2+
github.com/aws/smithy-gov1.22.3/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
13
github.com/cpuguy83/go-md2man/v2v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g=
24
github.com/davecgh/go-spewv1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
35
github.com/davecgh/go-spewv1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=

‎pkg/github/repositories.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"fmt"
77
"io"
88

9+
"github.com/aws/smithy-go/ptr"
910
"github.com/google/go-github/v69/github"
1011
"github.com/mark3labs/mcp-go/mcp"
1112
"github.com/mark3labs/mcp-go/server"
@@ -125,14 +126,14 @@ func createOrUpdateFile(client *github.Client) (tool mcp.Tool, handler server.To
125126

126127
// Create the file options
127128
opts:=&github.RepositoryContentFileOptions{
128-
Message:github.String(message),
129+
Message:ptr.String(message),
129130
Content:contentBytes,
130-
Branch:github.String(branch),
131+
Branch:ptr.String(branch),
131132
}
132133

133134
// If SHA is provided, set it (for updates)
134135
ifsha,ok:=request.Params.Arguments["sha"].(string);ok&&sha!="" {
135-
opts.SHA=github.String(sha)
136+
opts.SHA=ptr.String(sha)
136137
}
137138

138139
// Create or update the file

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp