Skip to content

Commit d459a44

Browse files
committed
bump go-github to v70
1 parent 6f8343a commit d459a44

File tree

6 files changed

+11
-13
lines changed

6 files changed

+11
-13
lines changed

gitty/github.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"context"
55
"net/http"
66

7-
"github.com/google/go-github/v67/github"
7+
"github.com/google/go-github/v70/github"
88
"github.com/worlpaker/gitty/gitty/token"
99
)
1010

gitty/github_test.go

+3-5
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"testing"
1010

1111
"github.com/brianvoe/gofakeit/v7"
12-
"github.com/google/go-github/v67/github"
12+
"github.com/google/go-github/v70/github"
1313
"github.com/stretchr/testify/assert"
1414
"github.com/stretchr/testify/require"
1515
)
@@ -39,14 +39,12 @@ func TestNewClient(t *testing.T) {
3939
t.Run(test.name, func(t *testing.T) {
4040
if test.auth {
4141
t.Setenv(tokenKey, fakeValue)
42-
client := newClient()
43-
assert.Equal(t, test.expected.UserAgent, client.UserAgent)
4442
} else {
4543
err := os.Unsetenv(tokenKey)
4644
require.NoError(t, err)
47-
client := newClient()
48-
assert.Equal(t, test.expected, client)
4945
}
46+
client := newClient()
47+
assert.Equal(t, test.expected.UserAgent, client.UserAgent)
5048
})
5149
}
5250
}

gitty/repository.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"sync"
99
"time"
1010

11-
"github.com/google/go-github/v67/github"
11+
"github.com/google/go-github/v70/github"
1212
"github.com/worlpaker/gitty/gitty/token"
1313
)
1414

gitty/repository_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"time"
1414

1515
"github.com/brianvoe/gofakeit/v7"
16-
"github.com/google/go-github/v67/github"
16+
"github.com/google/go-github/v70/github"
1717
"github.com/stretchr/testify/assert"
1818
"github.com/stretchr/testify/require"
1919
)

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.23.0
44

55
require (
66
github.com/brianvoe/gofakeit/v7 v7.2.1
7-
github.com/google/go-github/v67 v67.0.0
7+
github.com/google/go-github/v70 v70.0.0
88
github.com/spf13/cobra v1.9.1
99
github.com/stretchr/testify v1.10.0
1010
)

go.sum

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ3
55
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM=
66
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
77
github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
8-
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
9-
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
10-
github.com/google/go-github/v67 v67.0.0 h1:g11NDAmfaBaCO8qYdI9fsmbaRipHNWRIU/2YGvlh4rg=
11-
github.com/google/go-github/v67 v67.0.0/go.mod h1:zH3K7BxjFndr9QSeFibx4lTKkYS3K9nDanoI1NjaOtY=
8+
github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
9+
github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
10+
github.com/google/go-github/v70 v70.0.0 h1:/tqCp5KPrcvqCc7vIvYyFYTiCGrYvaWoYMGHSQbo55o=
11+
github.com/google/go-github/v70 v70.0.0/go.mod h1:xBUZgo8MI3lUL/hwxl3hlceJW1U8MVnXP3zUyI+rhQY=
1212
github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8=
1313
github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU=
1414
github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=

0 commit comments

Comments
 (0)