From f139734159561b62f454229518bb60a28e0e4195 Mon Sep 17 00:00:00 2001 From: Glenn Lewis <6598971+gmlewis@users.noreply.github.com> Date: Mon, 6 Jul 2026 16:11:20 -0400 Subject: [PATCH] chore: Bump version of go-github to v89.0.0 Signed-off-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com> --- .custom-gcl.yml | 12 +++++----- .golangci.yml | 12 +++++----- README.md | 22 +++++++++---------- example/actionpermissions/main.go | 2 +- example/auditlogstream/main.go | 2 +- example/basicauth/main.go | 2 +- .../newreposecretwithxcrypto/main.go | 2 +- .../newusersecretwithxcrypto/main.go | 2 +- example/commitpr/main.go | 6 ++--- example/contents/main.go | 2 +- example/go.mod | 11 +++++----- example/go.sum | 2 ++ example/listenvironments/main.go | 2 +- example/migrations/main.go | 2 +- example/newfilewithappauth/main.go | 2 +- example/newrepo/main.go | 2 +- example/newreposecretwithxcrypto/main.go | 2 +- example/otel/main.go | 4 ++-- example/ratelimit/main.go | 2 +- example/simple/main.go | 2 +- example/tokenauth/main.go | 2 +- example/topics/main.go | 2 +- example/uploadreleaseassetfromrelease/main.go | 2 +- example/verifyartifact/main.go | 2 +- github/doc.go | 2 +- github/example_iterators_test.go | 2 +- github/examples_test.go | 8 +++---- github/github.go | 2 +- go.mod | 2 +- otel/go.mod | 6 ++--- otel/transport.go | 4 ++-- test/integration/activity_test.go | 2 +- test/integration/authorizations_test.go | 2 +- test/integration/github_test.go | 2 +- test/integration/licences_test.go | 2 +- test/integration/pagination_test.go | 2 +- test/integration/projects_test.go | 2 +- test/integration/repos_test.go | 2 +- test/integration/users_test.go | 2 +- tools/check-structfield-settings/go.mod | 6 ++--- tools/check-structfield-settings/main.go | 2 +- tools/extraneousnew/go.mod | 2 +- tools/go.mod | 4 ++-- tools/metadata/main.go | 2 +- tools/metadata/main_test.go | 2 +- tools/metadata/metadata.go | 2 +- tools/metadata/openapi.go | 2 +- tools/structfield/go.mod | 2 +- 48 files changed, 86 insertions(+), 83 deletions(-) diff --git a/.custom-gcl.yml b/.custom-gcl.yml index a8a30554778..f693822331d 100644 --- a/.custom-gcl.yml +++ b/.custom-gcl.yml @@ -1,14 +1,14 @@ version: v2.12.2 # this is the version of golangci-lint plugins: - - module: "github.com/google/go-github/v88/tools/extraneousnew" + - module: "github.com/google/go-github/v89/tools/extraneousnew" path: ./tools/extraneousnew - - module: "github.com/google/go-github/v88/tools/fmtpercentv" + - module: "github.com/google/go-github/v89/tools/fmtpercentv" path: ./tools/fmtpercentv - - module: "github.com/google/go-github/v88/tools/paramcheck" + - module: "github.com/google/go-github/v89/tools/paramcheck" path: ./tools/paramcheck - - module: "github.com/google/go-github/v88/tools/redundantptr" + - module: "github.com/google/go-github/v89/tools/redundantptr" path: ./tools/redundantptr - - module: "github.com/google/go-github/v88/tools/sliceofpointers" + - module: "github.com/google/go-github/v89/tools/sliceofpointers" path: ./tools/sliceofpointers - - module: "github.com/google/go-github/v88/tools/structfield" + - module: "github.com/google/go-github/v89/tools/structfield" path: ./tools/structfield diff --git a/.golangci.yml b/.golangci.yml index f58605643b8..3f5023d3dbb 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -186,7 +186,7 @@ linters: extraneousnew: type: module description: Reports problematic usage of 'new' or '&SomeStruct{}' when a more idiomatic 'var' pointer would be more appropriate. - original-url: github.com/google/go-github/v88/tools/extraneousnew + original-url: github.com/google/go-github/v89/tools/extraneousnew settings: ignored-methods: - RateLimitService.Get @@ -194,11 +194,11 @@ linters: fmtpercentv: type: module description: Reports usage of %d or %s in format strings. - original-url: github.com/google/go-github/v88/tools/fmtpercentv + original-url: github.com/google/go-github/v89/tools/fmtpercentv paramcheck: type: module description: Reports parameter naming and type convention issues. - original-url: github.com/google/go-github/v88/tools/paramcheck + original-url: github.com/google/go-github/v89/tools/paramcheck settings: # Body type names exempt from the "pass by value, not by pointer" rule. # TODO: fix and remove these exceptions. @@ -316,15 +316,15 @@ linters: redundantptr: type: module description: Reports github.Ptr(x) calls that can be replaced with &x. - original-url: github.com/google/go-github/v88/tools/redundantptr + original-url: github.com/google/go-github/v89/tools/redundantptr sliceofpointers: type: module description: Reports usage of []*string and slices of structs without pointers. - original-url: github.com/google/go-github/v88/tools/sliceofpointers + original-url: github.com/google/go-github/v89/tools/sliceofpointers structfield: type: module description: Reports mismatches between Go field and JSON, URL tag names and types. - original-url: github.com/google/go-github/v88/tools/structfield + original-url: github.com/google/go-github/v89/tools/structfield settings: allowed-tag-names: - ActionsCacheUsageList.RepoCacheUsage # TODO: RepoCacheUsages ? diff --git a/README.md b/README.md index 7d087afa462..78c2949234b 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # go-github # [![go-github release (latest SemVer)](https://img.shields.io/github/v/release/google/go-github?sort=semver)](https://github.com/google/go-github/releases) -[![Go Reference](https://img.shields.io/static/v1?label=godoc&message=reference&color=blue)](https://pkg.go.dev/github.com/google/go-github/v88/github) +[![Go Reference](https://img.shields.io/static/v1?label=godoc&message=reference&color=blue)](https://pkg.go.dev/github.com/google/go-github/v89/github) [![Test Status](https://github.com/google/go-github/actions/workflows/tests.yml/badge.svg?branch=master)](https://github.com/google/go-github/actions/workflows/tests.yml) [![Test Coverage](https://codecov.io/gh/google/go-github/branch/master/graph/badge.svg)](https://codecov.io/gh/google/go-github) [![Discuss at go-github@googlegroups.com](https://img.shields.io/badge/discuss-go--github%40googlegroups.com-blue.svg)](https://groups.google.com/group/go-github) @@ -30,7 +30,7 @@ If you're interested in using the [GraphQL API v4][], the recommended library is go-github is compatible with modern Go releases in module mode, with Go installed: ```bash -go get github.com/google/go-github/v88 +go get github.com/google/go-github/v89 ``` will resolve and add the package to the current development module, along with its dependencies. @@ -38,7 +38,7 @@ will resolve and add the package to the current development module, along with i Alternatively the same can be achieved if you use import in a package: ```go -import "github.com/google/go-github/v88/github" +import "github.com/google/go-github/v89/github" ``` and run `go get` without parameters. @@ -46,20 +46,20 @@ and run `go get` without parameters. Finally, to use the top-of-trunk version of this repo, use the following command: ```bash -go get github.com/google/go-github/v88@master +go get github.com/google/go-github/v89@master ``` To discover all the changes that have occurred since a prior release, you can first clone the repo, then run (for example): ```bash -go run tools/gen-release-notes/main.go --tag v88.0.0 +go run tools/gen-release-notes/main.go --tag v89.0.0 ``` ## Usage ## ```go -import "github.com/google/go-github/v88/github" +import "github.com/google/go-github/v89/github" ``` Construct a new GitHub client, then use the various services on the client to @@ -123,7 +123,7 @@ include the specified OAuth token. Therefore, authenticated clients should almost never be shared between different users. For API methods that require HTTP Basic Authentication, use the -[`BasicAuthTransport`](https://pkg.go.dev/github.com/google/go-github/v88/github#BasicAuthTransport). +[`BasicAuthTransport`](https://pkg.go.dev/github.com/google/go-github/v89/github#BasicAuthTransport). #### As a GitHub App #### @@ -146,7 +146,7 @@ import ( "net/http" "github.com/bradleyfalzon/ghinstallation/v2" - "github.com/google/go-github/v88/github" + "github.com/google/go-github/v89/github" ) func main() { @@ -183,7 +183,7 @@ import ( "os" "strconv" - "github.com/google/go-github/v88/github" + "github.com/google/go-github/v89/github" "github.com/jferrl/go-githubauth" "golang.org/x/oauth2" ) @@ -465,7 +465,7 @@ For complete usage of go-github, see the full [package docs][]. [GitHub API v3]: https://docs.github.com/en/rest [personal access token]: https://github.com/blog/1509-personal-api-tokens -[package docs]: https://pkg.go.dev/github.com/google/go-github/v88/github +[package docs]: https://pkg.go.dev/github.com/google/go-github/v89/github [GraphQL API v4]: https://developer.github.com/v4/ [shurcooL/githubv4]: https://github.com/shurcooL/githubv4 [GitHub webhook events]: https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads @@ -541,7 +541,7 @@ Versions prior to 48.2.0 are not listed. | go-github Version | GitHub v3 API Version | | ----------------- | --------------------- | -| 88.0.0 | 2022-11-28 | +| 89.0.0 | 2022-11-28 | | ... | 2022-11-28 | | 48.2.0 | 2022-11-28 | diff --git a/example/actionpermissions/main.go b/example/actionpermissions/main.go index f330b56f223..540565e6cde 100644 --- a/example/actionpermissions/main.go +++ b/example/actionpermissions/main.go @@ -14,7 +14,7 @@ import ( "log" "os" - "github.com/google/go-github/v88/github" + "github.com/google/go-github/v89/github" ) var ( diff --git a/example/auditlogstream/main.go b/example/auditlogstream/main.go index d2bb7d72a8b..92bfbd97af2 100644 --- a/example/auditlogstream/main.go +++ b/example/auditlogstream/main.go @@ -37,7 +37,7 @@ import ( "log" "os" - "github.com/google/go-github/v88/github" + "github.com/google/go-github/v89/github" "golang.org/x/crypto/nacl/box" ) diff --git a/example/basicauth/main.go b/example/basicauth/main.go index 0c3905ec492..42104d0e76b 100644 --- a/example/basicauth/main.go +++ b/example/basicauth/main.go @@ -23,7 +23,7 @@ import ( "os" "strings" - "github.com/google/go-github/v88/github" + "github.com/google/go-github/v89/github" "golang.org/x/term" ) diff --git a/example/codespaces/newreposecretwithxcrypto/main.go b/example/codespaces/newreposecretwithxcrypto/main.go index 04a557fce8d..19d58900367 100644 --- a/example/codespaces/newreposecretwithxcrypto/main.go +++ b/example/codespaces/newreposecretwithxcrypto/main.go @@ -37,7 +37,7 @@ import ( "log" "os" - "github.com/google/go-github/v88/github" + "github.com/google/go-github/v89/github" "golang.org/x/crypto/nacl/box" ) diff --git a/example/codespaces/newusersecretwithxcrypto/main.go b/example/codespaces/newusersecretwithxcrypto/main.go index 5e50ef21048..8db692b87ea 100644 --- a/example/codespaces/newusersecretwithxcrypto/main.go +++ b/example/codespaces/newusersecretwithxcrypto/main.go @@ -38,7 +38,7 @@ import ( "log" "os" - "github.com/google/go-github/v88/github" + "github.com/google/go-github/v89/github" "golang.org/x/crypto/nacl/box" ) diff --git a/example/commitpr/main.go b/example/commitpr/main.go index 488cd3a1919..ee6f7661cc6 100644 --- a/example/commitpr/main.go +++ b/example/commitpr/main.go @@ -13,7 +13,7 @@ // // Note, if you want to push a single file, you probably prefer to use the // content API. An example is available here: -// https://pkg.go.dev/github.com/google/go-github/v88/github#example-RepositoriesService-CreateFile +// https://pkg.go.dev/github.com/google/go-github/v89/github#example-RepositoriesService-CreateFile // // Note, for this to work at least 1 commit is needed, so you if you use this // after creating a repository you might want to make sure you set `AutoInit` to @@ -33,7 +33,7 @@ import ( "time" "github.com/ProtonMail/go-crypto/openpgp" - "github.com/google/go-github/v88/github" + "github.com/google/go-github/v89/github" ) var ( @@ -178,7 +178,7 @@ func pushCommit(ref *github.Reference, tree *github.Tree) (err error) { return err } -// createPR creates a pull request. Based on: https://pkg.go.dev/github.com/google/go-github/v88/github#example-PullRequestsService-Create +// createPR creates a pull request. Based on: https://pkg.go.dev/github.com/google/go-github/v89/github#example-PullRequestsService-Create func createPR() (err error) { if *prSubject == "" { return errors.New("missing `-pr-title` flag; skipping PR creation") diff --git a/example/contents/main.go b/example/contents/main.go index 487d8ca283e..578ea89bda0 100644 --- a/example/contents/main.go +++ b/example/contents/main.go @@ -21,7 +21,7 @@ import ( "path/filepath" "strings" - "github.com/google/go-github/v88/github" + "github.com/google/go-github/v89/github" ) func main() { diff --git a/example/go.mod b/example/go.mod index e42a104d5d4..09f6fdb617f 100644 --- a/example/go.mod +++ b/example/go.mod @@ -1,4 +1,4 @@ -module github.com/google/go-github/v88/example +module github.com/google/go-github/v89/example go 1.25.5 @@ -7,8 +7,8 @@ require ( github.com/bradleyfalzon/ghinstallation/v2 v2.19.0 github.com/gofri/go-github-pagination v1.0.1 github.com/gofri/go-github-ratelimit/v2 v2.0.2 - github.com/google/go-github/otel/v88 v88.0.0 - github.com/google/go-github/v88 v88.0.0 + github.com/google/go-github/otel/v89 v89.0.0 + github.com/google/go-github/v89 v89.0.0 github.com/sigstore/sigstore-go v1.1.4 go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.44.0 go.opentelemetry.io/otel/sdk v1.44.0 @@ -53,6 +53,7 @@ require ( github.com/golang-jwt/jwt/v4 v4.5.2 // indirect github.com/google/certificate-transparency-go v1.3.2 // indirect github.com/google/go-containerregistry v0.20.7 // indirect + github.com/google/go-github/v88 v88.0.0 // indirect github.com/google/go-querystring v1.2.0 // indirect github.com/google/uuid v1.6.0 // indirect github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.3 // indirect @@ -88,6 +89,6 @@ require ( ) // Use version at HEAD, not the latest published. -replace github.com/google/go-github/v88 => ../ +replace github.com/google/go-github/v89 => ../ -replace github.com/google/go-github/otel/v88 => ../otel +replace github.com/google/go-github/otel/v89 => ../otel diff --git a/example/go.sum b/example/go.sum index 160aa309929..097ffc58b97 100644 --- a/example/go.sum +++ b/example/go.sum @@ -177,6 +177,8 @@ 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-containerregistry v0.20.7 h1:24VGNpS0IwrOZ2ms2P1QE3Xa5X9p4phx0aUgzYzHW6I= github.com/google/go-containerregistry v0.20.7/go.mod h1:Lx5LCZQjLH1QBaMPeGwsME9biPeo1lPx6lbGj/UmzgM= +github.com/google/go-github/v88 v88.0.0 h1:dZA9IKkPK1eXZj4ypngnpRj5FwdpTv4whix2PrQMP7M= +github.com/google/go-github/v88 v88.0.0/go.mod h1:rufTDgn2N45wjhukLTyxmvc9nilSp3mr3Rgtt6b1MPw= 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/google/s2a-go v0.1.9 h1:LGD7gtMgezd8a/Xak7mEWL0PjoTQFvpRudN895yqKW0= diff --git a/example/listenvironments/main.go b/example/listenvironments/main.go index 1f22295d007..21094ce6fc4 100644 --- a/example/listenvironments/main.go +++ b/example/listenvironments/main.go @@ -18,7 +18,7 @@ import ( "log" "os" - "github.com/google/go-github/v88/github" + "github.com/google/go-github/v89/github" ) func main() { diff --git a/example/migrations/main.go b/example/migrations/main.go index ed11a2d46ad..dfd19489390 100644 --- a/example/migrations/main.go +++ b/example/migrations/main.go @@ -13,7 +13,7 @@ import ( "fmt" "log" - "github.com/google/go-github/v88/github" + "github.com/google/go-github/v89/github" ) func fetchAllUserMigrations() ([]*github.UserMigration, error) { diff --git a/example/newfilewithappauth/main.go b/example/newfilewithappauth/main.go index 89ac41a1d42..1cb00840df0 100644 --- a/example/newfilewithappauth/main.go +++ b/example/newfilewithappauth/main.go @@ -16,7 +16,7 @@ import ( "time" "github.com/bradleyfalzon/ghinstallation/v2" - "github.com/google/go-github/v88/github" + "github.com/google/go-github/v89/github" ) func main() { diff --git a/example/newrepo/main.go b/example/newrepo/main.go index 1fb70b0f4bc..3b428c5aaa9 100644 --- a/example/newrepo/main.go +++ b/example/newrepo/main.go @@ -16,7 +16,7 @@ import ( "log" "os" - "github.com/google/go-github/v88/github" + "github.com/google/go-github/v89/github" ) var ( diff --git a/example/newreposecretwithxcrypto/main.go b/example/newreposecretwithxcrypto/main.go index 4aab60f62e9..42caeb95a8f 100644 --- a/example/newreposecretwithxcrypto/main.go +++ b/example/newreposecretwithxcrypto/main.go @@ -37,7 +37,7 @@ import ( "log" "os" - "github.com/google/go-github/v88/github" + "github.com/google/go-github/v89/github" "golang.org/x/crypto/nacl/box" ) diff --git a/example/otel/main.go b/example/otel/main.go index f103e8de2cb..e39631d4dd2 100644 --- a/example/otel/main.go +++ b/example/otel/main.go @@ -13,8 +13,8 @@ import ( "log" "net/http" - "github.com/google/go-github/otel/v88" - "github.com/google/go-github/v88/github" + "github.com/google/go-github/otel/v89" + "github.com/google/go-github/v89/github" "go.opentelemetry.io/otel/exporters/stdout/stdouttrace" "go.opentelemetry.io/otel/sdk/trace" ) diff --git a/example/ratelimit/main.go b/example/ratelimit/main.go index 15898067f33..a4ebcebca18 100644 --- a/example/ratelimit/main.go +++ b/example/ratelimit/main.go @@ -18,7 +18,7 @@ import ( "github.com/gofri/go-github-ratelimit/v2/github_ratelimit" "github.com/gofri/go-github-ratelimit/v2/github_ratelimit/github_primary_ratelimit" "github.com/gofri/go-github-ratelimit/v2/github_ratelimit/github_secondary_ratelimit" - "github.com/google/go-github/v88/github" + "github.com/google/go-github/v89/github" ) func main() { diff --git a/example/simple/main.go b/example/simple/main.go index d49f272d8d8..47f3fb900cf 100644 --- a/example/simple/main.go +++ b/example/simple/main.go @@ -13,7 +13,7 @@ import ( "fmt" "log" - "github.com/google/go-github/v88/github" + "github.com/google/go-github/v89/github" ) // Fetch all the public organizations' membership of a user. diff --git a/example/tokenauth/main.go b/example/tokenauth/main.go index 531d1face64..081c1e8b547 100644 --- a/example/tokenauth/main.go +++ b/example/tokenauth/main.go @@ -15,7 +15,7 @@ import ( "log" "os" - "github.com/google/go-github/v88/github" + "github.com/google/go-github/v89/github" "golang.org/x/term" ) diff --git a/example/topics/main.go b/example/topics/main.go index e4062f686ab..fd0b76f7eaf 100644 --- a/example/topics/main.go +++ b/example/topics/main.go @@ -13,7 +13,7 @@ import ( "fmt" "log" - "github.com/google/go-github/v88/github" + "github.com/google/go-github/v89/github" ) // Fetch and lists all the public topics associated with the specified GitHub topic. diff --git a/example/uploadreleaseassetfromrelease/main.go b/example/uploadreleaseassetfromrelease/main.go index 45317786e71..572afa1035d 100644 --- a/example/uploadreleaseassetfromrelease/main.go +++ b/example/uploadreleaseassetfromrelease/main.go @@ -14,7 +14,7 @@ import ( "log" "os" - "github.com/google/go-github/v88/github" + "github.com/google/go-github/v89/github" ) func main() { diff --git a/example/verifyartifact/main.go b/example/verifyartifact/main.go index 3c3476ef67d..bb467fa2dfb 100644 --- a/example/verifyartifact/main.go +++ b/example/verifyartifact/main.go @@ -18,7 +18,7 @@ import ( "log" "os" - "github.com/google/go-github/v88/github" + "github.com/google/go-github/v89/github" "github.com/sigstore/sigstore-go/pkg/bundle" "github.com/sigstore/sigstore-go/pkg/root" "github.com/sigstore/sigstore-go/pkg/verify" diff --git a/github/doc.go b/github/doc.go index 783917d800d..122000ea203 100644 --- a/github/doc.go +++ b/github/doc.go @@ -8,7 +8,7 @@ Package github provides a client for using the GitHub API. Usage: - import "github.com/google/go-github/v88/github" + import "github.com/google/go-github/v89/github" Construct a new GitHub client using [NewClient], then use the various services on the client to access different parts of the GitHub API. For example: diff --git a/github/example_iterators_test.go b/github/example_iterators_test.go index 1794d762ac4..c42d1d46d82 100644 --- a/github/example_iterators_test.go +++ b/github/example_iterators_test.go @@ -10,7 +10,7 @@ import ( "fmt" "log" - "github.com/google/go-github/v88/github" + "github.com/google/go-github/v89/github" ) func ExampleRepositoriesService_ListByUserIter() { diff --git a/github/examples_test.go b/github/examples_test.go index 824e1dcc015..16f07148ec0 100644 --- a/github/examples_test.go +++ b/github/examples_test.go @@ -12,7 +12,7 @@ import ( "fmt" "log" - "github.com/google/go-github/v88/github" + "github.com/google/go-github/v89/github" ) func ExampleMarkdownService_Render() { @@ -79,7 +79,7 @@ func ExampleRepositoriesService_CreateFile() { // so you will need to modify the example to provide authentication to // github.NewClient(). See the following documentation for more information // on how to authenticate with the client: - // https://pkg.go.dev/github.com/google/go-github/v88/github#hdr-Authentication + // https://pkg.go.dev/github.com/google/go-github/v89/github#hdr-Authentication client, err := github.NewClient() if err != nil { log.Fatalf("Error creating GitHub client: %v", err) @@ -129,7 +129,7 @@ func ExamplePullRequestsService_Create() { // so you will need to modify the example to provide authentication to // github.NewClient(). See the following documentation for more information // on how to authenticate with the client: - // https://pkg.go.dev/github.com/google/go-github/v88/github#hdr-Authentication + // https://pkg.go.dev/github.com/google/go-github/v89/github#hdr-Authentication client, err := github.NewClient() if err != nil { log.Fatalf("Error creating GitHub client: %v", err) @@ -160,7 +160,7 @@ func ExampleTeamsService_ListTeams() { // the example to to provide authentication to github.NewClient(). See the // following documentation for more information on how to authenticate with // the client: - // https://pkg.go.dev/github.com/google/go-github/v88/github#hdr-Authentication + // https://pkg.go.dev/github.com/google/go-github/v89/github#hdr-Authentication client, err := github.NewClient() if err != nil { log.Fatalf("Error creating GitHub client: %v", err) diff --git a/github/github.go b/github/github.go index 194e0e38aaf..233493fb1d1 100644 --- a/github/github.go +++ b/github/github.go @@ -30,7 +30,7 @@ import ( ) const ( - Version = "v88.0.0" + Version = "v89.0.0" HeaderRateLimit = "X-Ratelimit-Limit" HeaderRateRemaining = "X-Ratelimit-Remaining" diff --git a/go.mod b/go.mod index 778fad6df27..09f61f3003f 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/google/go-github/v88 +module github.com/google/go-github/v89 go 1.25.0 diff --git a/otel/go.mod b/otel/go.mod index 9bd2b63bd39..7595ef2344e 100644 --- a/otel/go.mod +++ b/otel/go.mod @@ -1,9 +1,9 @@ -module github.com/google/go-github/otel/v88 +module github.com/google/go-github/otel/v89 go 1.25.0 require ( - github.com/google/go-github/v88 v88.0.0 + github.com/google/go-github/v89 v89.0.0 go.opentelemetry.io/otel v1.44.0 go.opentelemetry.io/otel/metric v1.44.0 go.opentelemetry.io/otel/sdk v1.44.0 @@ -20,4 +20,4 @@ require ( golang.org/x/sys v0.45.0 // indirect ) -replace github.com/google/go-github/v88 => ../ +replace github.com/google/go-github/v89 => ../ diff --git a/otel/transport.go b/otel/transport.go index 344bdcc0cca..75d55a0a12e 100644 --- a/otel/transport.go +++ b/otel/transport.go @@ -11,7 +11,7 @@ import ( "net/http" "strconv" - "github.com/google/go-github/v88/github" + "github.com/google/go-github/v89/github" "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" @@ -22,7 +22,7 @@ import ( const ( // instrumentationName is the name of this instrumentation package. - instrumentationName = "github.com/google/go-github/v88/otel" + instrumentationName = "github.com/google/go-github/v89/otel" ) // Transport is an http.RoundTripper that instrument requests with OpenTelemetry. diff --git a/test/integration/activity_test.go b/test/integration/activity_test.go index affc858ca65..f6bbac8c37f 100644 --- a/test/integration/activity_test.go +++ b/test/integration/activity_test.go @@ -10,7 +10,7 @@ package integration import ( "testing" - "github.com/google/go-github/v88/github" + "github.com/google/go-github/v89/github" ) const ( diff --git a/test/integration/authorizations_test.go b/test/integration/authorizations_test.go index 6990ab45fae..eca3b35ae69 100644 --- a/test/integration/authorizations_test.go +++ b/test/integration/authorizations_test.go @@ -13,7 +13,7 @@ import ( "testing" "time" - "github.com/google/go-github/v88/github" + "github.com/google/go-github/v89/github" ) const ( diff --git a/test/integration/github_test.go b/test/integration/github_test.go index 2e0b353ddad..09ba0a4b666 100644 --- a/test/integration/github_test.go +++ b/test/integration/github_test.go @@ -16,7 +16,7 @@ import ( "sync" "testing" - "github.com/google/go-github/v88/github" + "github.com/google/go-github/v89/github" ) // client is a github.Client with the default http.Client. It is authorized if auth is true. diff --git a/test/integration/licences_test.go b/test/integration/licences_test.go index 0adc9952f14..01a7eca9389 100644 --- a/test/integration/licences_test.go +++ b/test/integration/licences_test.go @@ -10,7 +10,7 @@ package integration import ( "testing" - "github.com/google/go-github/v88/github" + "github.com/google/go-github/v89/github" ) func TestLicenses_ListIter(t *testing.T) { diff --git a/test/integration/pagination_test.go b/test/integration/pagination_test.go index 79156ac74b9..300c2239a21 100644 --- a/test/integration/pagination_test.go +++ b/test/integration/pagination_test.go @@ -10,7 +10,7 @@ package integration import ( "testing" - "github.com/google/go-github/v88/github" + "github.com/google/go-github/v89/github" ) func TestSecurityAdvisories_ListGlobalSecurityAdvisories(t *testing.T) { diff --git a/test/integration/projects_test.go b/test/integration/projects_test.go index 27759e5431a..25585f16263 100644 --- a/test/integration/projects_test.go +++ b/test/integration/projects_test.go @@ -11,7 +11,7 @@ import ( "os" "testing" - "github.com/google/go-github/v88/github" + "github.com/google/go-github/v89/github" ) // Integration tests for Projects V2 endpoints defined in github/projects.go. diff --git a/test/integration/repos_test.go b/test/integration/repos_test.go index 9c0a51f52fa..6ee9811e32c 100644 --- a/test/integration/repos_test.go +++ b/test/integration/repos_test.go @@ -13,7 +13,7 @@ import ( "testing" "github.com/google/go-cmp/cmp" - "github.com/google/go-github/v88/github" + "github.com/google/go-github/v89/github" ) func TestRepositories_CRUD(t *testing.T) { diff --git a/test/integration/users_test.go b/test/integration/users_test.go index 25cb4699612..1c863994077 100644 --- a/test/integration/users_test.go +++ b/test/integration/users_test.go @@ -12,7 +12,7 @@ import ( "math/rand" "testing" - "github.com/google/go-github/v88/github" + "github.com/google/go-github/v89/github" ) func TestUsers_Get(t *testing.T) { diff --git a/tools/check-structfield-settings/go.mod b/tools/check-structfield-settings/go.mod index 55ecb8a1245..86e20bd1d3c 100644 --- a/tools/check-structfield-settings/go.mod +++ b/tools/check-structfield-settings/go.mod @@ -1,10 +1,10 @@ -module github.com/google/go-github/v88/tools/check-structfield-settings +module github.com/google/go-github/v89/tools/check-structfield-settings go 1.25.0 require ( github.com/golangci/plugin-module-register v0.1.2 - github.com/google/go-github/v88/tools/structfield v0.0.0 + github.com/google/go-github/v89/tools/structfield v0.0.0 go.yaml.in/yaml/v3 v3.0.4 golang.org/x/tools v0.47.0 ) @@ -15,4 +15,4 @@ require ( ) // Use version at HEAD, not the latest published. -replace github.com/google/go-github/v88/tools/structfield v0.0.0 => ../structfield +replace github.com/google/go-github/v89/tools/structfield v0.0.0 => ../structfield diff --git a/tools/check-structfield-settings/main.go b/tools/check-structfield-settings/main.go index dd1d5a7cc68..4972ccbb169 100644 --- a/tools/check-structfield-settings/main.go +++ b/tools/check-structfield-settings/main.go @@ -25,7 +25,7 @@ import ( "strings" "github.com/golangci/plugin-module-register/register" - "github.com/google/go-github/v88/tools/structfield" + "github.com/google/go-github/v89/tools/structfield" "go.yaml.in/yaml/v3" "golang.org/x/tools/go/analysis" "golang.org/x/tools/go/analysis/checker" diff --git a/tools/extraneousnew/go.mod b/tools/extraneousnew/go.mod index 875de1ca98c..2562d215d48 100644 --- a/tools/extraneousnew/go.mod +++ b/tools/extraneousnew/go.mod @@ -1,4 +1,4 @@ -module github.com/google/go-github/v88/tools/extraneousnew +module github.com/google/go-github/v89/tools/extraneousnew go 1.25.0 diff --git a/tools/go.mod b/tools/go.mod index 2ab91c30044..a4176a228ae 100644 --- a/tools/go.mod +++ b/tools/go.mod @@ -6,7 +6,7 @@ require ( github.com/alecthomas/kong v1.15.0 github.com/getkin/kin-openapi v0.140.0 github.com/google/go-cmp v0.7.0 - github.com/google/go-github/v88 v88.0.0 + github.com/google/go-github/v89 v89.0.0 go.yaml.in/yaml/v3 v3.0.4 golang.org/x/sync v0.21.0 ) @@ -23,4 +23,4 @@ require ( ) // Use version at HEAD, not the latest published. -replace github.com/google/go-github/v88 => ../ +replace github.com/google/go-github/v89 => ../ diff --git a/tools/metadata/main.go b/tools/metadata/main.go index 219b2dc969d..00a9b0495de 100644 --- a/tools/metadata/main.go +++ b/tools/metadata/main.go @@ -17,7 +17,7 @@ import ( "slices" "github.com/alecthomas/kong" - "github.com/google/go-github/v88/github" + "github.com/google/go-github/v89/github" ) var helpVars = kong.Vars{ diff --git a/tools/metadata/main_test.go b/tools/metadata/main_test.go index dc729e0a6ea..5fd0a85d797 100644 --- a/tools/metadata/main_test.go +++ b/tools/metadata/main_test.go @@ -23,7 +23,7 @@ import ( "github.com/alecthomas/kong" "github.com/getkin/kin-openapi/openapi3" "github.com/google/go-cmp/cmp" - "github.com/google/go-github/v88/github" + "github.com/google/go-github/v89/github" ) func TestUpdateGo(t *testing.T) { diff --git a/tools/metadata/metadata.go b/tools/metadata/metadata.go index b84e70da1de..567956654ab 100644 --- a/tools/metadata/metadata.go +++ b/tools/metadata/metadata.go @@ -26,7 +26,7 @@ import ( "strings" "sync" - "github.com/google/go-github/v88/github" + "github.com/google/go-github/v89/github" "go.yaml.in/yaml/v3" ) diff --git a/tools/metadata/openapi.go b/tools/metadata/openapi.go index 0019514fd45..0a30b65ad50 100644 --- a/tools/metadata/openapi.go +++ b/tools/metadata/openapi.go @@ -16,7 +16,7 @@ import ( "strings" "github.com/getkin/kin-openapi/openapi3" - "github.com/google/go-github/v88/github" + "github.com/google/go-github/v89/github" "golang.org/x/sync/errgroup" ) diff --git a/tools/structfield/go.mod b/tools/structfield/go.mod index 980034beb8c..e0e1f8990a2 100644 --- a/tools/structfield/go.mod +++ b/tools/structfield/go.mod @@ -1,4 +1,4 @@ -module github.com/google/go-github/v88/tools/structfield +module github.com/google/go-github/v89/tools/structfield go 1.25.0