diff --git a/config.go b/config.go index d94dda5..1ee428a 100644 --- a/config.go +++ b/config.go @@ -6,7 +6,7 @@ import ( "strings" "github.com/Songmu/gitconfig" - "github.com/google/go-github/v49/github" + "github.com/google/go-github/v57/github" ) const ( diff --git a/github.go b/github.go index cf30676..8f3fdd4 100644 --- a/github.go +++ b/github.go @@ -6,7 +6,7 @@ import ( "net/url" "github.com/Songmu/gitconfig" - "github.com/google/go-github/v49/github" + "github.com/google/go-github/v57/github" "golang.org/x/oauth2" ) diff --git a/go.mod b/go.mod index f60a7ef..2a62ea9 100644 --- a/go.mod +++ b/go.mod @@ -1,13 +1,13 @@ module github.com/Songmu/tagpr -go 1.19 +go 1.21.5 require ( github.com/Masterminds/semver/v3 v3.2.1 - github.com/Songmu/gh2changelog v0.0.4 + github.com/Songmu/gh2changelog v0.0.5 github.com/Songmu/gitconfig v0.2.0 github.com/Songmu/gitsemvers v0.0.3 - github.com/google/go-github/v49 v49.1.0 + github.com/google/go-github/v57 v57.0.0 github.com/saracen/walker v0.1.3 golang.org/x/oauth2 v0.15.0 ) diff --git a/go.sum b/go.sum index 4ee52bc..8b82def 100644 --- a/go.sum +++ b/go.sum @@ -1,11 +1,12 @@ github.com/MakeNowJust/heredoc v1.0.0/go.mod h1:mG5amYoWBHf8vpLOuehzbGGw0EHxpZZ6lCpQ4fNJ8LE= github.com/Masterminds/semver/v3 v3.2.1 h1:RN9w6+7QoMeJVGyfmbcgs28Br8cvmnucEXnY0rYXWg0= github.com/Masterminds/semver/v3 v3.2.1/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ= -github.com/Songmu/gh2changelog v0.0.4 h1:j8Vl0mSs46Qiqv4bS2/9bjUuJxg7IzfCuA3WUdliPU8= -github.com/Songmu/gh2changelog v0.0.4/go.mod h1:WxmumOk8iL3/qXwFKJhTROomHKeevDg9zY+pm3K8HA4= +github.com/Songmu/gh2changelog v0.0.5 h1:YBLawkHbhRE9bMyl1d0J8RPDL7LFw/rrbk75WbOSTvc= +github.com/Songmu/gh2changelog v0.0.5/go.mod h1:v7zsZcXH2Y9GiivTDymsRIMUwr4+f+pJ8RvjWhMGThc= github.com/Songmu/gitconfig v0.2.0 h1:pX2++u4KUq+K2k/ZCzGXLtkD3ceCqIdi0tDyb+IbSyo= github.com/Songmu/gitconfig v0.2.0/go.mod h1:cB5bYJer+pl7W8g6RHFwL/0X6aJROVrYuHlvc7PT+hE= github.com/Songmu/gitmock v0.0.2 h1:KF5GTll60LxGskZbt58QDd29y/GYLgdxqvkvnSU6RlY= +github.com/Songmu/gitmock v0.0.2/go.mod h1:/ILc8CtPydh2MJ8toKCOB1opd2HCaU/6RWJjg7lmSvs= github.com/Songmu/gitsemvers v0.0.3 h1:pyNgp4+G0Y65zP+4ANybm/fFUyThaMl3SrUzmh50ogk= github.com/Songmu/gitsemvers v0.0.3/go.mod h1:WdKXiC8zjNK1N7CoZ9cM9vrw/Bg6/W4AwGrfTkkUPdM= github.com/cli/browser v1.1.0/go.mod h1:HKMQAt9t12kov91Mn7RfZxyJQQgWgyS/3SZswlZ5iTI= @@ -18,6 +19,7 @@ github.com/cli/safeexec v1.0.1/go.mod h1:Z/D4tTN8Vs5gXYHDCbaM1S/anmEDnJb1iW0+EJ5 github.com/cli/shurcooL-graphql v0.0.1/go.mod h1:U7gCSuMZP/Qy7kbqkk5PrqXEeDgtfG5K+W+u8weorps= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/fatih/color v1.10.0/go.mod h1:ELkj/draVOlAH/xkhN6mQ50Qd0MPOk5AAr3maGEBuJM= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM= @@ -38,9 +40,10 @@ github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= -github.com/google/go-github/v49 v49.1.0 h1:LFkMgawGQ8dfzWLH/rNE0b3u1D3n6/dw7ZmrN3b+YFY= -github.com/google/go-github/v49 v49.1.0/go.mod h1:MUUzHPrhGniB6vUKa27y37likpipzG+BXXJbG04J334= +github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= +github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-github/v57 v57.0.0 h1:L+Y3UPTY8ALM8x+TV0lg+IEBI+upibemtBD8Q9u7zHs= +github.com/google/go-github/v57 v57.0.0/go.mod h1:s0omdnye0hvK/ecLvpsGfJMiRt85PimQh4oygmLIxHw= github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510/go.mod h1:pupxD2MaaD3pAXIBCelhxNneeOaAeabZDe5s4K6zSpQ= diff --git a/tag.go b/tag.go index e8f5938..22b921c 100644 --- a/tag.go +++ b/tag.go @@ -4,7 +4,7 @@ import ( "context" "strings" - "github.com/google/go-github/v49/github" + "github.com/google/go-github/v57/github" ) func (tp *tagpr) latestPullRequest(ctx context.Context) (*github.PullRequest, error) { diff --git a/tagpr.go b/tagpr.go index 46bde44..925cd9f 100644 --- a/tagpr.go +++ b/tagpr.go @@ -18,7 +18,7 @@ import ( "github.com/Songmu/gh2changelog" "github.com/Songmu/gitsemvers" - "github.com/google/go-github/v49/github" + "github.com/google/go-github/v57/github" ) const ( diff --git a/tagpr_test.go b/tagpr_test.go index 207b6f9..ec7e67a 100644 --- a/tagpr_test.go +++ b/tagpr_test.go @@ -6,9 +6,8 @@ import ( "os" "reflect" "testing" - "time" - "github.com/google/go-github/v49/github" + "github.com/google/go-github/v57/github" ) func TestBuildChunkSearchIssuesQuery(t *testing.T) { @@ -276,9 +275,9 @@ func TestGeneratenNextLabels(t *testing.T) { Labels: tt.labels, Assignee: &github.User{}, Comments: new(int), - ClosedAt: &time.Time{}, - CreatedAt: &time.Time{}, - UpdatedAt: &time.Time{}, + ClosedAt: &github.Timestamp{}, + CreatedAt: &github.Timestamp{}, + UpdatedAt: &github.Timestamp{}, ClosedBy: &github.User{}, URL: new(string), HTMLURL: new(string),