Skip to content

Commit 2830c69

Browse files
authored
chore: Bump version of go-github to v84.0.0 (#4049)
1 parent 8a2e909 commit 2830c69

File tree

48 files changed

+79
-79
lines changed

Some content is hidden

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

48 files changed

+79
-79
lines changed

.custom-gcl.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
version: v2.10.1 # should be in sync with script/setup-custom-gcl.sh
22
plugins:
3-
- module: "github.com/google/go-github/v83/tools/fmtpercentv"
3+
- module: "github.com/google/go-github/v84/tools/fmtpercentv"
44
path: ./tools/fmtpercentv
5-
- module: "github.com/google/go-github/v83/tools/sliceofpointers"
5+
- module: "github.com/google/go-github/v84/tools/sliceofpointers"
66
path: ./tools/sliceofpointers
7-
- module: "github.com/google/go-github/v83/tools/structfield"
7+
- module: "github.com/google/go-github/v84/tools/structfield"
88
path: ./tools/structfield

.golangci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,15 +179,15 @@ linters:
179179
fmtpercentv:
180180
type: module
181181
description: Reports usage of %d or %s in format strings.
182-
original-url: github.com/google/go-github/v83/tools/fmtpercentv
182+
original-url: github.com/google/go-github/v84/tools/fmtpercentv
183183
sliceofpointers:
184184
type: module
185185
description: Reports usage of []*string and slices of structs without pointers.
186-
original-url: github.com/google/go-github/v83/tools/sliceofpointers
186+
original-url: github.com/google/go-github/v84/tools/sliceofpointers
187187
structfield:
188188
type: module
189189
description: Reports mismatches between Go field and JSON, URL tag names and types.
190-
original-url: github.com/google/go-github/v83/tools/structfield
190+
original-url: github.com/google/go-github/v84/tools/structfield
191191
settings:
192192
allowed-tag-names:
193193
- 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/v83/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/v84/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/v83
33+
go get github.com/google/go-github/v84
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/v83/github"
41+
import "github.com/google/go-github/v84/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/v83@master
49+
go get github.com/google/go-github/v84@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 v83.0.0
56+
go run tools/gen-release-notes/main.go --tag v84.0.0
5757
```
5858

5959
## Usage ##
6060

6161
```go
62-
import "github.com/google/go-github/v83/github"
62+
import "github.com/google/go-github/v84/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/v83/github#BasicAuthTransport).
111+
[`BasicAuthTransport`](https://pkg.go.dev/github.com/google/go-github/v84/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/v83/github"
134+
"github.com/google/go-github/v84/github"
135135
)
136136

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

168-
"github.com/google/go-github/v83/github"
168+
"github.com/google/go-github/v84/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/v83/github
437+
[package docs]: https://pkg.go.dev/github.com/google/go-github/v84/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-
| 83.0.0 | 2022-11-28 |
511+
| 84.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/v83/github"
17+
"github.com/google/go-github/v84/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/v83/github"
15+
"github.com/google/go-github/v84/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/v83/github"
25+
"github.com/google/go-github/v84/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/v83/github"
40+
"github.com/google/go-github/v84/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/v83/github"
41+
"github.com/google/go-github/v84/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/v83/github#example-RepositoriesService-CreateFile
16+
// https://pkg.go.dev/github.com/google/go-github/v84/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/v83/github"
36+
"github.com/google/go-github/v84/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/v83/github#example-PullRequestsService-Create
181+
// createPR creates a pull request. Based on: https://pkg.go.dev/github.com/google/go-github/v84/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: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/google/go-github/v83/example
1+
module github.com/google/go-github/v84/example
22

33
go 1.25.5
44

@@ -7,8 +7,8 @@ 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/v83 v83.0.0
11-
github.com/google/go-github/v83/otel v0.0.0-00010101000000-000000000000
10+
github.com/google/go-github/v84 v84.0.0
11+
github.com/google/go-github/v84/otel v0.0.0-00010101000000-000000000000
1212
github.com/sigstore/sigstore-go v1.1.4
1313
go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.40.0
1414
go.opentelemetry.io/otel/sdk v1.40.0
@@ -91,6 +91,6 @@ require (
9191
)
9292

9393
// Use version at HEAD, not the latest published.
94-
replace github.com/google/go-github/v83 => ../
94+
replace github.com/google/go-github/v84 => ../
9595

96-
replace github.com/google/go-github/v83/otel => ../otel
96+
replace github.com/google/go-github/v84/otel => ../otel

0 commit comments

Comments
 (0)