Skip to content

Commit c93693f

Browse files
authored
Bump version of go-github to v76.0.0 (#3782)
1 parent d94f5c9 commit c93693f

File tree

37 files changed

+54
-51
lines changed

37 files changed

+54
-51
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# go-github #
22

33
[![go-github release (latest SemVer)](https://img.shields.io/github/v/release/google/go-github?sort=semver)](https://github.com/google/go-github/releases)
4-
[![Go Reference](https://img.shields.io/static/v1?label=godoc&message=reference&color=blue)](https://pkg.go.dev/github.com/google/go-github/v75/github)
4+
[![Go Reference](https://img.shields.io/static/v1?label=godoc&message=reference&color=blue)](https://pkg.go.dev/github.com/google/go-github/v76/github)
55
[![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)
66
[![Test Coverage](https://codecov.io/gh/google/go-github/branch/master/graph/badge.svg)](https://codecov.io/gh/google/go-github)
77
[![Discuss at [email protected]](https://img.shields.io/badge/discuss-go--github%40googlegroups.com-blue.svg)](https://groups.google.com/group/go-github)
@@ -30,29 +30,29 @@ If you're interested in using the [GraphQL API v4][], the recommended library is
3030
go-github is compatible with modern Go releases in module mode, with Go installed:
3131

3232
```bash
33-
go get github.com/google/go-github/v75
33+
go get github.com/google/go-github/v76
3434
```
3535

3636
will resolve and add the package to the current development module, along with its dependencies.
3737

3838
Alternatively the same can be achieved if you use import in a package:
3939

4040
```go
41-
import "github.com/google/go-github/v75/github"
41+
import "github.com/google/go-github/v76/github"
4242
```
4343

4444
and run `go get` without parameters.
4545

4646
Finally, to use the top-of-trunk version of this repo, use the following command:
4747

4848
```bash
49-
go get github.com/google/go-github/v75@master
49+
go get github.com/google/go-github/v76@master
5050
```
5151

5252
## Usage ##
5353

5454
```go
55-
import "github.com/google/go-github/v75/github" // with go modules enabled (GO111MODULE=on or outside GOPATH)
55+
import "github.com/google/go-github/v76/github" // with go modules enabled (GO111MODULE=on or outside GOPATH)
5656
import "github.com/google/go-github/github" // with go modules disabled
5757
```
5858

@@ -102,7 +102,7 @@ include the specified OAuth token. Therefore, authenticated clients should
102102
almost never be shared between different users.
103103

104104
For API methods that require HTTP Basic Authentication, use the
105-
[`BasicAuthTransport`](https://pkg.go.dev/github.com/google/go-github/v75/github#BasicAuthTransport).
105+
[`BasicAuthTransport`](https://pkg.go.dev/github.com/google/go-github/v76/github#BasicAuthTransport).
106106

107107
#### As a GitHub App ####
108108

@@ -125,7 +125,7 @@ import (
125125
"net/http"
126126

127127
"github.com/bradleyfalzon/ghinstallation/v2"
128-
"github.com/google/go-github/v75/github"
128+
"github.com/google/go-github/v76/github"
129129
)
130130

131131
func main() {
@@ -159,7 +159,7 @@ import (
159159
"os"
160160
"strconv"
161161

162-
"github.com/google/go-github/v75/github"
162+
"github.com/google/go-github/v76/github"
163163
"github.com/jferrl/go-githubauth"
164164
"golang.org/x/oauth2"
165165
)
@@ -400,7 +400,7 @@ For complete usage of go-github, see the full [package docs][].
400400

401401
[GitHub API v3]: https://docs.github.com/en/rest
402402
[personal access token]: https://github.com/blog/1509-personal-api-tokens
403-
[package docs]: https://pkg.go.dev/github.com/google/go-github/v75/github
403+
[package docs]: https://pkg.go.dev/github.com/google/go-github/v76/github
404404
[GraphQL API v4]: https://developer.github.com/v4/
405405
[shurcooL/githubv4]: https://github.com/shurcooL/githubv4
406406
[GitHub webhook events]: https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads
@@ -474,7 +474,7 @@ Versions prior to 48.2.0 are not listed.
474474

475475
| go-github Version | GitHub v3 API Version |
476476
| ----------------- | --------------------- |
477-
| 75.0.0 | 2022-11-28 |
477+
| 76.0.0 | 2022-11-28 |
478478
| ... | 2022-11-28 |
479479
| 48.2.0 | 2022-11-28 |
480480

example/actionpermissions/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"log"
1515
"os"
1616

17-
"github.com/google/go-github/v75/github"
17+
"github.com/google/go-github/v76/github"
1818
)
1919

2020
var (

example/appengine/app.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"net/http"
1313
"os"
1414

15-
"github.com/google/go-github/v75/github"
15+
"github.com/google/go-github/v76/github"
1616
"google.golang.org/appengine"
1717
"google.golang.org/appengine/log"
1818
)

example/basicauth/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"os"
2323
"strings"
2424

25-
"github.com/google/go-github/v75/github"
25+
"github.com/google/go-github/v76/github"
2626
"golang.org/x/term"
2727
)
2828

example/codespaces/newreposecretwithxcrypto/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import (
3737
"log"
3838
"os"
3939

40-
"github.com/google/go-github/v75/github"
40+
"github.com/google/go-github/v76/github"
4141
"golang.org/x/crypto/nacl/box"
4242
)
4343

example/codespaces/newusersecretwithxcrypto/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import (
3838
"log"
3939
"os"
4040

41-
"github.com/google/go-github/v75/github"
41+
"github.com/google/go-github/v76/github"
4242
"golang.org/x/crypto/nacl/box"
4343
)
4444

example/commitpr/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
//
1414
// Note, if you want to push a single file, you probably prefer to use the
1515
// content API. An example is available here:
16-
// https://pkg.go.dev/github.com/google/go-github/v75/github#example-RepositoriesService-CreateFile
16+
// https://pkg.go.dev/github.com/google/go-github/v76/github#example-RepositoriesService-CreateFile
1717
//
1818
// Note, for this to work at least 1 commit is needed, so you if you use this
1919
// after creating a repository you might want to make sure you set `AutoInit` to
@@ -33,7 +33,7 @@ import (
3333
"time"
3434

3535
"github.com/ProtonMail/go-crypto/openpgp"
36-
"github.com/google/go-github/v75/github"
36+
"github.com/google/go-github/v76/github"
3737
)
3838

3939
var (
@@ -178,7 +178,7 @@ func pushCommit(ref *github.Reference, tree *github.Tree) (err error) {
178178
return err
179179
}
180180

181-
// createPR creates a pull request. Based on: https://pkg.go.dev/github.com/google/go-github/v75/github#example-PullRequestsService-Create
181+
// createPR creates a pull request. Based on: https://pkg.go.dev/github.com/google/go-github/v76/github#example-PullRequestsService-Create
182182
func createPR() (err error) {
183183
if *prSubject == "" {
184184
return errors.New("missing `-pr-title` flag; skipping PR creation")

example/go.mod

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/google/go-github/v75/example
1+
module github.com/google/go-github/v76/example
22

33
go 1.24.0
44

@@ -7,7 +7,7 @@ require (
77
github.com/bradleyfalzon/ghinstallation/v2 v2.17.0
88
github.com/gofri/go-github-pagination v1.0.1
99
github.com/gofri/go-github-ratelimit/v2 v2.0.2
10-
github.com/google/go-github/v75 v75.0.0
10+
github.com/google/go-github/v76 v76.0.0
1111
github.com/sigstore/sigstore-go v0.6.1
1212
golang.org/x/crypto v0.43.0
1313
golang.org/x/term v0.36.0
@@ -40,6 +40,7 @@ require (
4040
github.com/golang/protobuf v1.5.4 // indirect
4141
github.com/google/certificate-transparency-go v1.2.1 // indirect
4242
github.com/google/go-containerregistry v0.20.2 // indirect
43+
github.com/google/go-github/v75 v75.0.0 // indirect
4344
github.com/google/go-querystring v1.1.0 // indirect
4445
github.com/google/uuid v1.6.0 // indirect
4546
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
@@ -99,4 +100,4 @@ require (
99100
)
100101

101102
// Use version at HEAD, not the latest published.
102-
replace github.com/google/go-github/v75 => ../
103+
replace github.com/google/go-github/v76 => ../

example/go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
154154
github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
155155
github.com/google/go-containerregistry v0.20.2 h1:B1wPJ1SN/S7pB+ZAimcciVD+r+yV/l/DSArMxlbwseo=
156156
github.com/google/go-containerregistry v0.20.2/go.mod h1:z38EKdKh4h7IP2gSfUUqEvalZBqs6AoLeWfUy34nQC8=
157+
github.com/google/go-github/v75 v75.0.0 h1:k7q8Bvg+W5KxRl9Tjq16a9XEgVY1pwuiG5sIL7435Ic=
158+
github.com/google/go-github/v75 v75.0.0/go.mod h1:H3LUJEA1TCrzuUqtdAQniBNwuKiQIqdGKgBo1/M/uqI=
157159
github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8=
158160
github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU=
159161
github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0=

example/listenvironments/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
"log"
1919
"os"
2020

21-
"github.com/google/go-github/v75/github"
21+
"github.com/google/go-github/v76/github"
2222
)
2323

2424
func main() {

0 commit comments

Comments
 (0)