diff --git a/applier.go b/applier.go index 19cedca..b20806c 100644 --- a/applier.go +++ b/applier.go @@ -13,7 +13,7 @@ import ( "time" "github.com/bluekeyes/go-gitdiff/gitdiff" - "github.com/google/go-github/v81/github" + "github.com/google/go-github/v82/github" ) // DefaultCommitMessage is the commit message used when no message is provided diff --git a/applier_test.go b/applier_test.go index b982358..41a56f9 100644 --- a/applier_test.go +++ b/applier_test.go @@ -15,7 +15,7 @@ import ( "github.com/bluekeyes/go-gitdiff/gitdiff" "github.com/bluekeyes/patch2pr/internal" - "github.com/google/go-github/v81/github" + "github.com/google/go-github/v82/github" "github.com/shurcooL/githubv4" ) @@ -335,9 +335,7 @@ func cleanupBranches(t *testing.T, tctx *TestContext) { return } - refs, _, err := tctx.Client.Git.ListMatchingRefs(tctx, tctx.Repo.Owner, tctx.Repo.Name, &github.ReferenceListOptions{ - Ref: fmt.Sprintf("heads/test/%s/", tctx.ID), - }) + refs, _, err := tctx.Client.Git.ListMatchingRefs(tctx, tctx.Repo.Owner, tctx.Repo.Name, fmt.Sprintf("heads/test/%s/", tctx.ID)) if err != nil { t.Logf("WARNING: failed to list refs; skipping cleanup: %v", err) return diff --git a/cmd/patch2pr/main.go b/cmd/patch2pr/main.go index 2d1ae38..5b85330 100644 --- a/cmd/patch2pr/main.go +++ b/cmd/patch2pr/main.go @@ -16,7 +16,7 @@ import ( "time" "github.com/bluekeyes/go-gitdiff/gitdiff" - "github.com/google/go-github/v81/github" + "github.com/google/go-github/v82/github" "github.com/bluekeyes/patch2pr" "github.com/bluekeyes/patch2pr/internal" diff --git a/go.mod b/go.mod index 1ae6acc..18aff2d 100644 --- a/go.mod +++ b/go.mod @@ -4,12 +4,12 @@ go 1.24.0 require ( github.com/bluekeyes/go-gitdiff v0.8.1 - github.com/google/go-github/v81 v81.0.0 + github.com/google/go-github/v82 v82.0.0 github.com/shurcooL/githubv4 v0.0.0-20210922025249-6831e00d857f ) require ( - github.com/google/go-querystring v1.1.0 // indirect + github.com/google/go-querystring v1.2.0 // indirect github.com/shurcooL/graphql v0.0.0-20200928012149-18c5c3165e3a // indirect golang.org/x/net v0.38.0 // indirect golang.org/x/oauth2 v0.27.0 // indirect diff --git a/go.sum b/go.sum index f9ca355..81e2cf2 100644 --- a/go.sum +++ b/go.sum @@ -1,12 +1,12 @@ github.com/bluekeyes/go-gitdiff v0.8.1 h1:lL1GofKMywO17c0lgQmJYcKek5+s8X6tXVNOLxy4smI= github.com/bluekeyes/go-gitdiff v0.8.1/go.mod h1:WWAk1Mc6EgWarCrPFO+xeYlujPu98VuLW3Tu+B/85AE= -github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= -github.com/google/go-github/v81 v81.0.0 h1:hTLugQRxSLD1Yei18fk4A5eYjOGLUBKAl/VCqOfFkZc= -github.com/google/go-github/v81 v81.0.0/go.mod h1:upyjaybucIbBIuxgJS7YLOZGziyvvJ92WX6WEBNE3sM= -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/go-github/v82 v82.0.0 h1:OH09ESON2QwKCUVMYmMcVu1IFKFoaZHwqYaUtr/MVfk= +github.com/google/go-github/v82 v82.0.0/go.mod h1:hQ6Xo0VKfL8RZ7z1hSfB4fvISg0QqHOqe9BP0qo+WvM= +github.com/google/go-querystring v1.2.0 h1:yhqkPbu2/OH+V9BfpCVPZkNmUXhb2gBxJArfhIxNtP0= +github.com/google/go-querystring v1.2.0/go.mod h1:8IFJqpSRITyJ8QhQ13bmbeMBDfmeEJZD5A0egEOmkqU= github.com/shurcooL/githubv4 v0.0.0-20210922025249-6831e00d857f h1:q4b8/GCL8Ksl+okhFKSd8DVBQNc0XExjxTO68nK0c3Y= github.com/shurcooL/githubv4 v0.0.0-20210922025249-6831e00d857f/go.mod h1:hAF0iLZy4td2EX+/8Tw+4nodhlMrwN3HupfaXj3zkGo= github.com/shurcooL/graphql v0.0.0-20200928012149-18c5c3165e3a h1:KikTa6HtAK8cS1qjvUvvq4QO21QnwC+EfvB+OAuZ/ZU= @@ -15,4 +15,3 @@ golang.org/x/net v0.38.0 h1:vRMAPTMaeGqVhG5QyLJHqNDwecKTomGeqbnfZyKlBI8= golang.org/x/net v0.38.0/go.mod h1:ivrbrMbzFq5J41QOQh0siUuly180yBYtLp+CKbEaFx8= golang.org/x/oauth2 v0.27.0 h1:da9Vo7/tDv5RH/7nZDz1eMGS/q1Vv1N/7FCrBhI9I3M= golang.org/x/oauth2 v0.27.0/go.mod h1:onh5ek6nERTohokkhCD/y2cV4Do3fxFHFuAejCkRWT8= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/graphql_applier.go b/graphql_applier.go index e0004e2..8b9db21 100644 --- a/graphql_applier.go +++ b/graphql_applier.go @@ -11,7 +11,7 @@ import ( "path" "github.com/bluekeyes/go-gitdiff/gitdiff" - "github.com/google/go-github/v81/github" + "github.com/google/go-github/v82/github" "github.com/shurcooL/githubv4" ) diff --git a/reference.go b/reference.go index 583fc47..a697f1f 100644 --- a/reference.go +++ b/reference.go @@ -5,7 +5,7 @@ import ( "fmt" "strings" - "github.com/google/go-github/v81/github" + "github.com/google/go-github/v82/github" ) // Reference is a named reference in a repository.