File tree 6 files changed +11
-13
lines changed
6 files changed +11
-13
lines changed Original file line number Diff line number Diff line change 4
4
"context"
5
5
"net/http"
6
6
7
- "github.com/google/go-github/v67 /github"
7
+ "github.com/google/go-github/v70 /github"
8
8
"github.com/worlpaker/gitty/gitty/token"
9
9
)
10
10
Original file line number Diff line number Diff line change 9
9
"testing"
10
10
11
11
"github.com/brianvoe/gofakeit/v7"
12
- "github.com/google/go-github/v67 /github"
12
+ "github.com/google/go-github/v70 /github"
13
13
"github.com/stretchr/testify/assert"
14
14
"github.com/stretchr/testify/require"
15
15
)
@@ -39,14 +39,12 @@ func TestNewClient(t *testing.T) {
39
39
t .Run (test .name , func (t * testing.T ) {
40
40
if test .auth {
41
41
t .Setenv (tokenKey , fakeValue )
42
- client := newClient ()
43
- assert .Equal (t , test .expected .UserAgent , client .UserAgent )
44
42
} else {
45
43
err := os .Unsetenv (tokenKey )
46
44
require .NoError (t , err )
47
- client := newClient ()
48
- assert .Equal (t , test .expected , client )
49
45
}
46
+ client := newClient ()
47
+ assert .Equal (t , test .expected .UserAgent , client .UserAgent )
50
48
})
51
49
}
52
50
}
Original file line number Diff line number Diff line change 8
8
"sync"
9
9
"time"
10
10
11
- "github.com/google/go-github/v67 /github"
11
+ "github.com/google/go-github/v70 /github"
12
12
"github.com/worlpaker/gitty/gitty/token"
13
13
)
14
14
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import (
13
13
"time"
14
14
15
15
"github.com/brianvoe/gofakeit/v7"
16
- "github.com/google/go-github/v67 /github"
16
+ "github.com/google/go-github/v70 /github"
17
17
"github.com/stretchr/testify/assert"
18
18
"github.com/stretchr/testify/require"
19
19
)
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ go 1.23.0
4
4
5
5
require (
6
6
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
8
8
github.com/spf13/cobra v1.9.1
9
9
github.com/stretchr/testify v1.10.0
10
10
)
Original file line number Diff line number Diff line change @@ -5,10 +5,10 @@ github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ3
5
5
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM =
6
6
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc /go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38 =
7
7
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 =
12
12
github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8 =
13
13
github.com/google/go-querystring v1.1.0 /go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU =
14
14
github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8 =
You can’t perform that action at this time.
0 commit comments