Skip to content

Commit 6c4bbf0

Browse files
chore: remove deprecated func
1 parent 81cc812 commit 6c4bbf0

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/logrus v1.9.3
99
github.com/spf13/cobra v1.9.1
1010
github.com/spf13/viper v1.19.0
11+
github.com/aws/smithy-go v1.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-go v1.22.3 h1:Z//5NuZCSW6R4PhQ93hShNbyBbn8BWCmCVCt+Q8Io5k=
2+
github.com/aws/smithy-go v1.22.3/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
13
github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g=
24
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
35
github.com/davecgh/go-spew v1.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
if sha, 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy