Skip to content

Commit 13c19cc

Browse files
dev: Update module github.com/google/go-github/v63 to v84 (#103)
Co-authored-by: mm-renovate-bot[bot] <265138953+mm-renovate-bot[bot]@users.noreply.github.com> Co-authored-by: BakerNet <hans@multimediallc.com>
1 parent 2e0b0cb commit 13c19cc

File tree

6 files changed

+105
-104
lines changed

6 files changed

+105
-104
lines changed

go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
module github.com/multimediallc/codeowners-plus
22

3-
go 1.23.1
3+
go 1.25.0
44

55
require (
66
github.com/bmatcuk/doublestar/v4 v4.10.0
77
github.com/boyter/gocodewalker v1.5.1
8-
github.com/google/go-github/v63 v63.0.0
8+
github.com/google/go-github/v84 v84.0.0
99
github.com/pelletier/go-toml/v2 v2.2.4
1010
github.com/sourcegraph/go-diff v0.7.0
1111
github.com/urfave/cli/v3 v3.7.0
1212
)
1313

1414
require (
1515
github.com/danwakefield/fnmatch v0.0.0-20160403171240-cbb64ac3d964 // indirect
16-
github.com/google/go-querystring v1.1.0 // indirect
16+
github.com/google/go-querystring v1.2.0 // indirect
1717
golang.org/x/sync v0.12.0 // indirect
1818
)

go.sum

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ github.com/danwakefield/fnmatch v0.0.0-20160403171240-cbb64ac3d964/go.mod h1:Xd9
77
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
88
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
99
github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
10-
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
1110
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
12-
github.com/google/go-github/v63 v63.0.0 h1:13xwK/wk9alSokujB9lJkuzdmQuVn2QCPeck76wR3nE=
13-
github.com/google/go-github/v63 v63.0.0/go.mod h1:IqbcrgUmIcEaioWrGYei/09o+ge5vhffGOcxrO0AfmA=
14-
github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8=
15-
github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU=
11+
github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
12+
github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
13+
github.com/google/go-github/v84 v84.0.0 h1:I/0Xn5IuChMe8TdmI2bbim5nyhaRFJ7DEdzmD2w+yVA=
14+
github.com/google/go-github/v84 v84.0.0/go.mod h1:WwYL1z1ajRdlaPszjVu/47x1L0PXukJBn73xsiYrRRQ=
15+
github.com/google/go-querystring v1.2.0 h1:yhqkPbu2/OH+V9BfpCVPZkNmUXhb2gBxJArfhIxNtP0=
16+
github.com/google/go-querystring v1.2.0/go.mod h1:8IFJqpSRITyJ8QhQ13bmbeMBDfmeEJZD5A0egEOmkqU=
1617
github.com/pelletier/go-toml/v2 v2.2.4 h1:mye9XuhQ6gvn5h28+VilKrrPoQVanw5PMw/TB0t5Ec4=
1718
github.com/pelletier/go-toml/v2 v2.2.4/go.mod h1:2gIqNv+qfxSVS7cM2xJQKtLSTLUE9V8t9Stt+h56mCY=
1819
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=

internal/app/app.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -552,9 +552,9 @@ func (a *App) requestReviews() error {
552552

553553
func (a *App) printFileOwners(codeOwners codeowners.CodeOwners) {
554554
a.printDebug("File Reviewers:\n")
555-
a.printDebug(a.getFileOwnersMapToString(codeOwners.FileRequired()))
555+
a.printDebug("%s", a.getFileOwnersMapToString(codeOwners.FileRequired()))
556556
a.printDebug("File Optional:\n")
557-
a.printDebug(a.getFileOwnersMapToString(codeOwners.FileOptional()))
557+
a.printDebug("%s", a.getFileOwnersMapToString(codeOwners.FileOptional()))
558558
}
559559

560560
func (a *App) getFileOwnersMapToString(fileReviewers map[string]codeowners.ReviewerGroups) string {

internal/app/app_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"testing"
99
"time"
1010

11-
"github.com/google/go-github/v63/github"
11+
"github.com/google/go-github/v84/github"
1212
owners "github.com/multimediallc/codeowners-plus/internal/config"
1313
"github.com/multimediallc/codeowners-plus/internal/git"
1414
gh "github.com/multimediallc/codeowners-plus/internal/github"
@@ -201,7 +201,7 @@ func (m *mockGitHubClient) InitPR(pr_id int) error {
201201
return m.initPRError
202202
}
203203
if m.pr == nil {
204-
m.pr = &github.PullRequest{Number: github.Int(pr_id)}
204+
m.pr = &github.PullRequest{Number: github.Ptr(pr_id)}
205205
}
206206
return nil
207207
}
@@ -233,7 +233,7 @@ func (m *mockGitHubClient) AddComment(comment string) error {
233233
if m.comments == nil {
234234
m.comments = make([]*github.IssueComment, 0)
235235
}
236-
m.comments = append(m.comments, &github.IssueComment{Body: github.String(comment)})
236+
m.comments = append(m.comments, &github.IssueComment{Body: github.Ptr(comment)})
237237
return nil
238238
}
239239

@@ -555,8 +555,8 @@ func TestAddReviewStatusComment(t *testing.T) {
555555
},
556556
existingComments: []*github.IssueComment{
557557
{
558-
ID: github.Int64(1),
559-
Body: github.String("Codeowners approval required for this PR:\n[ ] @user1"),
558+
ID: github.Ptr[int64](1),
559+
Body: github.Ptr("Codeowners approval required for this PR:\n[ ] @user1"),
560560
},
561561
},
562562
expectUpdateComment: true,

internal/github/gh.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"strings"
1010
"time"
1111

12-
"github.com/google/go-github/v63/github"
12+
"github.com/google/go-github/v84/github"
1313
"github.com/multimediallc/codeowners-plus/internal/git"
1414
"github.com/multimediallc/codeowners-plus/pkg/codeowners"
1515
f "github.com/multimediallc/codeowners-plus/pkg/functional"
@@ -411,8 +411,8 @@ func (gh *GHClient) ApprovePR() error {
411411
return &NoPRError{}
412412
}
413413
createReviewOptions := &github.PullRequestReviewRequest{
414-
Event: github.String("APPROVE"),
415-
Body: github.String("Codeowners reviews satisfied"),
414+
Event: github.Ptr("APPROVE"),
415+
Body: github.Ptr("Codeowners reviews satisfied"),
416416
}
417417
_, res, err := gh.client.PullRequests.CreateReview(gh.ctx, gh.owner, gh.repo, gh.pr.GetNumber(), createReviewOptions)
418418
if err != nil {

0 commit comments

Comments
 (0)