Skip to content

Commit da2e1bf

Browse files
authored
chore: Bump version of go-github to v87.0.0 (#4233)
1 parent 223b7e6 commit da2e1bf

48 files changed

Lines changed: 82 additions & 82 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.custom-gcl.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
version: v2.12.2 # this is the version of golangci-lint
22
plugins:
3-
- module: "github.com/google/go-github/v86/tools/extraneousnew"
3+
- module: "github.com/google/go-github/v87/tools/extraneousnew"
44
path: ./tools/extraneousnew
5-
- module: "github.com/google/go-github/v86/tools/fmtpercentv"
5+
- module: "github.com/google/go-github/v87/tools/fmtpercentv"
66
path: ./tools/fmtpercentv
7-
- module: "github.com/google/go-github/v86/tools/redundantptr"
7+
- module: "github.com/google/go-github/v87/tools/redundantptr"
88
path: ./tools/redundantptr
9-
- module: "github.com/google/go-github/v86/tools/sliceofpointers"
9+
- module: "github.com/google/go-github/v87/tools/sliceofpointers"
1010
path: ./tools/sliceofpointers
11-
- module: "github.com/google/go-github/v86/tools/structfield"
11+
- module: "github.com/google/go-github/v87/tools/structfield"
1212
path: ./tools/structfield

.golangci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -185,27 +185,27 @@ linters:
185185
extraneousnew:
186186
type: module
187187
description: Reports problematic usage of 'new' or '&SomeStruct{}' when a more idiomatic 'var' pointer would be more appropriate.
188-
original-url: github.com/google/go-github/v86/tools/extraneousnew
188+
original-url: github.com/google/go-github/v87/tools/extraneousnew
189189
settings:
190190
ignored-methods:
191191
- RateLimitService.Get
192192
- RepositoriesService.ReplaceAllTopics
193193
fmtpercentv:
194194
type: module
195195
description: Reports usage of %d or %s in format strings.
196-
original-url: github.com/google/go-github/v86/tools/fmtpercentv
196+
original-url: github.com/google/go-github/v87/tools/fmtpercentv
197197
redundantptr:
198198
type: module
199199
description: Reports github.Ptr(x) calls that can be replaced with &x.
200-
original-url: github.com/google/go-github/v86/tools/redundantptr
200+
original-url: github.com/google/go-github/v87/tools/redundantptr
201201
sliceofpointers:
202202
type: module
203203
description: Reports usage of []*string and slices of structs without pointers.
204-
original-url: github.com/google/go-github/v86/tools/sliceofpointers
204+
original-url: github.com/google/go-github/v87/tools/sliceofpointers
205205
structfield:
206206
type: module
207207
description: Reports mismatches between Go field and JSON, URL tag names and types.
208-
original-url: github.com/google/go-github/v86/tools/structfield
208+
original-url: github.com/google/go-github/v87/tools/structfield
209209
settings:
210210
allowed-tag-names:
211211
- ActionsCacheUsageList.RepoCacheUsage # TODO: RepoCacheUsages ?

README.md

Lines changed: 11 additions & 11 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/v86/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/v87/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 go-github@googlegroups.com](https://img.shields.io/badge/discuss-go--github%40googlegroups.com-blue.svg)](https://groups.google.com/group/go-github)
@@ -30,36 +30,36 @@ 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/v86
33+
go get github.com/google/go-github/v87
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/v86/github"
41+
import "github.com/google/go-github/v87/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/v86@master
49+
go get github.com/google/go-github/v87@master
5050
```
5151

5252
To discover all the changes that have occurred since a prior release, you can
5353
first clone the repo, then run (for example):
5454

5555
```bash
56-
go run tools/gen-release-notes/main.go --tag v86.0.0
56+
go run tools/gen-release-notes/main.go --tag v87.0.0
5757
```
5858

5959
## Usage ##
6060

6161
```go
62-
import "github.com/google/go-github/v86/github"
62+
import "github.com/google/go-github/v87/github"
6363
```
6464

6565
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
123123
almost never be shared between different users.
124124

125125
For API methods that require HTTP Basic Authentication, use the
126-
[`BasicAuthTransport`](https://pkg.go.dev/github.com/google/go-github/v86/github#BasicAuthTransport).
126+
[`BasicAuthTransport`](https://pkg.go.dev/github.com/google/go-github/v87/github#BasicAuthTransport).
127127

128128
#### As a GitHub App ####
129129

@@ -146,7 +146,7 @@ import (
146146
"net/http"
147147

148148
"github.com/bradleyfalzon/ghinstallation/v2"
149-
"github.com/google/go-github/v86/github"
149+
"github.com/google/go-github/v87/github"
150150
)
151151

152152
func main() {
@@ -183,7 +183,7 @@ import (
183183
"os"
184184
"strconv"
185185

186-
"github.com/google/go-github/v86/github"
186+
"github.com/google/go-github/v87/github"
187187
"github.com/jferrl/go-githubauth"
188188
"golang.org/x/oauth2"
189189
)
@@ -465,7 +465,7 @@ For complete usage of go-github, see the full [package docs][].
465465

466466
[GitHub API v3]: https://docs.github.com/en/rest
467467
[personal access token]: https://github.com/blog/1509-personal-api-tokens
468-
[package docs]: https://pkg.go.dev/github.com/google/go-github/v86/github
468+
[package docs]: https://pkg.go.dev/github.com/google/go-github/v87/github
469469
[GraphQL API v4]: https://developer.github.com/v4/
470470
[shurcooL/githubv4]: https://github.com/shurcooL/githubv4
471471
[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.
541541

542542
| go-github Version | GitHub v3 API Version |
543543
| ----------------- | --------------------- |
544-
| 86.0.0 | 2022-11-28 |
544+
| 87.0.0 | 2022-11-28 |
545545
| ... | 2022-11-28 |
546546
| 48.2.0 | 2022-11-28 |
547547

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/v86/github"
17+
"github.com/google/go-github/v87/github"
1818
)
1919

2020
var (

example/auditlogstream/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/v86/github"
40+
"github.com/google/go-github/v87/github"
4141
"golang.org/x/crypto/nacl/box"
4242
)
4343

example/basicauth/main.go

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

26-
"github.com/google/go-github/v86/github"
26+
"github.com/google/go-github/v87/github"
2727
"golang.org/x/term"
2828
)
2929

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/v86/github"
40+
"github.com/google/go-github/v87/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/v86/github"
41+
"github.com/google/go-github/v87/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/v86/github#example-RepositoriesService-CreateFile
16+
// https://pkg.go.dev/github.com/google/go-github/v87/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/v86/github"
36+
"github.com/google/go-github/v87/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/v86/github#example-PullRequestsService-Create
181+
// createPR creates a pull request. Based on: https://pkg.go.dev/github.com/google/go-github/v87/github#example-PullRequestsService-Create
182182
func createPR() (err error) {
183183
if *prSubject == "" {
184184
return errors.New("missing `-pr-title` flag; skipping PR creation")

example/contents/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"path/filepath"
2222
"strings"
2323

24-
"github.com/google/go-github/v86/github"
24+
"github.com/google/go-github/v87/github"
2525
)
2626

2727
func main() {

0 commit comments

Comments
 (0)