Skip to content

Commit 5f0d5d0

Browse files
authored
chore: Bump version of go-github to v85.0.0 (#4173)
1 parent 0ee0e90 commit 5f0d5d0

File tree

49 files changed

+85
-82
lines changed

Some content is hidden

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

49 files changed

+85
-82
lines changed

.custom-gcl.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
version: v2.10.1 # this is the version of golangci-lint
22
plugins:
3-
- module: "github.com/google/go-github/v84/tools/extraneousnew"
3+
- module: "github.com/google/go-github/v85/tools/extraneousnew"
44
path: ./tools/extraneousnew
5-
- module: "github.com/google/go-github/v84/tools/fmtpercentv"
5+
- module: "github.com/google/go-github/v85/tools/fmtpercentv"
66
path: ./tools/fmtpercentv
7-
- module: "github.com/google/go-github/v84/tools/redundantptr"
7+
- module: "github.com/google/go-github/v85/tools/redundantptr"
88
path: ./tools/redundantptr
9-
- module: "github.com/google/go-github/v84/tools/sliceofpointers"
9+
- module: "github.com/google/go-github/v85/tools/sliceofpointers"
1010
path: ./tools/sliceofpointers
11-
- module: "github.com/google/go-github/v84/tools/structfield"
11+
- module: "github.com/google/go-github/v85/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/v84/tools/extraneousnew
188+
original-url: github.com/google/go-github/v85/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/v84/tools/fmtpercentv
196+
original-url: github.com/google/go-github/v85/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/v84/tools/redundantptr
200+
original-url: github.com/google/go-github/v85/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/v84/tools/sliceofpointers
204+
original-url: github.com/google/go-github/v85/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/v84/tools/structfield
208+
original-url: github.com/google/go-github/v85/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/v84/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/v85/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/v84
33+
go get github.com/google/go-github/v85
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/v84/github"
41+
import "github.com/google/go-github/v85/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/v84@master
49+
go get github.com/google/go-github/v85@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 v84.0.0
56+
go run tools/gen-release-notes/main.go --tag v85.0.0
5757
```
5858

5959
## Usage ##
6060

6161
```go
62-
import "github.com/google/go-github/v84/github"
62+
import "github.com/google/go-github/v85/github"
6363
```
6464

6565
Construct a new GitHub client, then use the various services on the client to
@@ -108,7 +108,7 @@ include the specified OAuth token. Therefore, authenticated clients should
108108
almost never be shared between different users.
109109

110110
For API methods that require HTTP Basic Authentication, use the
111-
[`BasicAuthTransport`](https://pkg.go.dev/github.com/google/go-github/v84/github#BasicAuthTransport).
111+
[`BasicAuthTransport`](https://pkg.go.dev/github.com/google/go-github/v85/github#BasicAuthTransport).
112112

113113
#### As a GitHub App ####
114114

@@ -131,7 +131,7 @@ import (
131131
"net/http"
132132

133133
"github.com/bradleyfalzon/ghinstallation/v2"
134-
"github.com/google/go-github/v84/github"
134+
"github.com/google/go-github/v85/github"
135135
)
136136

137137
func main() {
@@ -165,7 +165,7 @@ import (
165165
"os"
166166
"strconv"
167167

168-
"github.com/google/go-github/v84/github"
168+
"github.com/google/go-github/v85/github"
169169
"github.com/jferrl/go-githubauth"
170170
"golang.org/x/oauth2"
171171
)
@@ -434,7 +434,7 @@ For complete usage of go-github, see the full [package docs][].
434434

435435
[GitHub API v3]: https://docs.github.com/en/rest
436436
[personal access token]: https://github.com/blog/1509-personal-api-tokens
437-
[package docs]: https://pkg.go.dev/github.com/google/go-github/v84/github
437+
[package docs]: https://pkg.go.dev/github.com/google/go-github/v85/github
438438
[GraphQL API v4]: https://developer.github.com/v4/
439439
[shurcooL/githubv4]: https://github.com/shurcooL/githubv4
440440
[GitHub webhook events]: https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads
@@ -508,7 +508,7 @@ Versions prior to 48.2.0 are not listed.
508508

509509
| go-github Version | GitHub v3 API Version |
510510
| ----------------- | --------------------- |
511-
| 84.0.0 | 2022-11-28 |
511+
| 85.0.0 | 2022-11-28 |
512512
| ... | 2022-11-28 |
513513
| 48.2.0 | 2022-11-28 |
514514

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/v84/github"
17+
"github.com/google/go-github/v85/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/v84/github"
40+
"github.com/google/go-github/v85/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
@@ -22,7 +22,7 @@ import (
2222
"os"
2323
"strings"
2424

25-
"github.com/google/go-github/v84/github"
25+
"github.com/google/go-github/v85/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/v84/github"
40+
"github.com/google/go-github/v85/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/v84/github"
41+
"github.com/google/go-github/v85/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/v84/github#example-RepositoriesService-CreateFile
16+
// https://pkg.go.dev/github.com/google/go-github/v85/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/v84/github"
36+
"github.com/google/go-github/v85/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/v84/github#example-PullRequestsService-Create
181+
// createPR creates a pull request. Based on: https://pkg.go.dev/github.com/google/go-github/v85/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
@@ -20,7 +20,7 @@ import (
2020
"path/filepath"
2121
"strings"
2222

23-
"github.com/google/go-github/v84/github"
23+
"github.com/google/go-github/v85/github"
2424
)
2525

2626
func main() {

0 commit comments

Comments
 (0)