Skip to content

Commit 1dcfefc

Browse files
authored
Bump version of go-github to v83.0.0 (#4015)
1 parent b7cf18f commit 1dcfefc

File tree

49 files changed

+97
-76
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

+97
-76
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.7.0
22
plugins:
3-
- module: "github.com/google/go-github/v82/tools/fmtpercentv"
3+
- module: "github.com/google/go-github/v83/tools/fmtpercentv"
44
path: ./tools/fmtpercentv
5-
- module: "github.com/google/go-github/v82/tools/sliceofpointers"
5+
- module: "github.com/google/go-github/v83/tools/sliceofpointers"
66
path: ./tools/sliceofpointers
7-
- module: "github.com/google/go-github/v82/tools/structfield"
7+
- module: "github.com/google/go-github/v83/tools/structfield"
88
path: ./tools/structfield

.golangci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,15 +159,15 @@ linters:
159159
fmtpercentv:
160160
type: module
161161
description: Reports usage of %d or %s in format strings.
162-
original-url: github.com/google/go-github/v82/tools/fmtpercentv
162+
original-url: github.com/google/go-github/v83/tools/fmtpercentv
163163
sliceofpointers:
164164
type: module
165165
description: Reports usage of []*string and slices of structs without pointers.
166-
original-url: github.com/google/go-github/v82/tools/sliceofpointers
166+
original-url: github.com/google/go-github/v83/tools/sliceofpointers
167167
structfield:
168168
type: module
169169
description: Reports mismatches between Go field and JSON, URL tag names and types.
170-
original-url: github.com/google/go-github/v82/tools/structfield
170+
original-url: github.com/google/go-github/v83/tools/structfield
171171
settings:
172172
allowed-tag-names:
173173
- ActionsCacheUsageList.RepoCacheUsage # TODO: RepoCacheUsages ?

AUTHORS

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
2BFL <imqksl@gmail.com>
1313
413x <dedifferentiator@gmail.com>
1414
6543 <6543@obermui.de>
15+
Aaron LaBrie <bigdadbear@github.com>
1516
Abed Kibbe <abed.kibbe@gmail.com>
1617
Abhijit Hota <abhihota025@gmail.com>
1718
Abhinav Gupta <mail@abhinavg.net>
@@ -77,6 +78,7 @@ Arda Kuyumcu <kuyumcuarda@gmail.com>
7778
Ary <arylmoraesn@hotmail.com>
7879
Arıl Bozoluk <arilbozoluk@hotmail.com>
7980
Asier Marruedo <asiermarruedo@gmail.com>
81+
Austen Stone <austenstone@github.com>
8082
Austin Burdine <acburdine@gmail.com>
8183
Austin Dizzy <dizzy@wow.com>
8284
Azuka Okuleye <azuka@zatechcorp.com>
@@ -101,6 +103,7 @@ Bradley Falzon <brad@teambrad.net>
101103
Bradley McAllister <brad.mcallister@hotmail.com>
102104
Brandon Butler <b.butler@chia.net>
103105
Brandon Cook <phylake@gmail.com>
106+
Brandon Everett <bme2010@gmail.com>
104107
Brandon Stubbs <brstubbs1@gmail.com>
105108
Brett Kuhlman <kuhlman-labs@github.com>
106109
Brett Logan <lindluni@github.com>
@@ -130,7 +133,9 @@ Christian Muehlhaeuser <muesli@gmail.com>
130133
Christoph Jerolimov <jerolimov@gmail.com>
131134
Christoph Sassenberg <defsprite@gmail.com>
132135
CI Monk <ci-monk@protonmail.com>
136+
Claus Näveke <github@naeveke.de>
133137
Clemens W <Clemens.wijnekus@nordnet.se>
138+
cointem <jsyin1@163.com>
134139
Colby Williams <ColbyLWilliams@gmail.com>
135140
Colin Misare <github.com/cmisare>
136141
Craig Gumbley <craiggumbley@gmail.com>
@@ -157,6 +162,7 @@ Davide Zipeto <dawez1@gmail.com>
157162
Dennis Webb <dennis@bluesentryit.com>
158163
Derek Jobst <derekjobst@gmail.com>
159164
DeviousLab <deviouslab@gmail.com>
165+
Dhananjay Mishra <technicaldmcontact@gmail.com>
160166
Dhi Aurrahman <diorahman@rockybars.com>
161167
Diego Lapiduz <diego.lapiduz@cfpb.gov>
162168
Diogo Vilela <be0x74a@gmail.com>
@@ -208,6 +214,7 @@ Glen Mailer <glenjamin@gmail.com>
208214
Gnahz <p@oath.pl>
209215
Google Inc.
210216
Grachev Mikhail <work@mgrachev.com>
217+
Gregor Jasny <gjasny@googlemail.com>
211218
Gregory Oschwald <oschwald@gmail.com>
212219
griffin_stewie <panterathefamilyguy@gmail.com>
213220
guangwu <guoguangwu@magic-shield.com>
@@ -227,6 +234,7 @@ Huy Tr <kingbazoka@gmail.com>
227234
huydx <doxuanhuy@gmail.com>
228235
i2bskn <i2bskn@gmail.com>
229236
Iain Steers <iainsteers@gmail.com>
237+
Iehana Fu <wasuremono127@gmail.com>
230238
Ikko Ashimine <eltociear@gmail.com>
231239
Ilia Choly <ilia.choly@gmail.com>
232240
Ioannis Georgoulas <igeorgoulas21@gmail.com>
@@ -239,6 +247,7 @@ Jake Krammer <jake.krammer1@gmail.com>
239247
Jake Scaltreto <jake.scaltreto@circle.com>
240248
Jake White <jake@jwhite.network>
241249
Jameel Haffejee <RC1140@republiccommandos.co.za>
250+
James Alseth <james@jalseth.me>
242251
James Bowes <jbowes@repl.ca>
243252
James Cockbain <james.cockbain@ibm.com>
244253
James Loh <github@jloh.co>
@@ -261,6 +270,7 @@ Jesse Newland <jesse@jnewland.com>
261270
Jihoon Chung <j.c@navercorp.com>
262271
Jille Timmermans <jille@quis.cx>
263272
Jimmi Dyson <jimmidyson@gmail.com>
273+
Jiří Žižkovský <jirizizkovsky@post.cz>
264274
Joan Saum <joan.saum@epitech.eu>
265275
JoannaaKL <joannaakl@github.com>
266276
Joe Tsai <joetsai@digital-static.net>
@@ -312,6 +322,7 @@ kyokomi <kyoko1220adword@gmail.com>
312322
Lachlan Cooper <lachlancooper@gmail.com>
313323
Lars Lehtonen <lars.lehtonen@gmail.com>
314324
Laurent Verdoïa <verdoialaurent@gmail.com>
325+
Leonard Sheng Sheng Lee <leonard.sheng.sheng.lee@gmail.com>
315326
leopoldwang <leopold.wang@gmail.com>
316327
Liam Galvin <liam@liam-galvin.co.uk>
317328
Liam Stanley <liam@liam.sh>
@@ -332,6 +343,8 @@ Léo Salé <leo.sale@datadoghq.com>
332343
M. Ryan Rigdon <mr.rigdon@gmail.com>
333344
Magnus Kulke <mkulke@gmail.com>
334345
Maksim Zhylinski <uzzable@gmail.com>
346+
Manas Sivakumar <manas23601@gmail.com>
347+
Manav Sharma <manav.acno1@gmail.com>
335348
Manuel Bergler <manue1@github.com>
336349
Marc Binder <marcandrebinder@gmail.com>
337350
Marcelo Carlos <marcelo@permutive.com>
@@ -343,6 +356,8 @@ Marwan Sulaiman <marwan.sameer@gmail.com>
343356
Masayuki Izumi <m@izum.in>
344357
Mat Geist <matgeist@gmail.com>
345358
Matheus Santos Araújo <wenked.matheus@yahoo.com.br>
359+
MathewClegg <mathew.clegg@live.se>
360+
Mathieu Sévégny <mathieu.sevegny@goto.com>
346361
Matija Horvat <horvat2112@gmail.com>
347362
Matin Rahmanian <itsmatinx@gmail.com>
348363
Matt <alpmatthew@gmail.com>
@@ -356,6 +371,7 @@ Matt Simons <mattsimons@ntlworld.com>
356371
Matthew Reidy <matthewreidy5@gmail.com>
357372
Maxime Bury <maxime.bury@gmail.com>
358373
Michael Meng <mmeng@lyft.com>
374+
Michael Recachinas <mrecachinas@github.com>
359375
Michael Spiegel <michael.m.spiegel@gmail.com>
360376
Michael Tiller <michael.tiller@gmail.com>
361377
Michał Glapa <michal.glapa@gmail.com>
@@ -365,6 +381,7 @@ Mike Ball <mikedball@gmail.com>
365381
Mike Chen <mchen300@gmail.com>
366382
Miles Crabill <miles@milescrabill.com>
367383
Mishin Nikolai <sanduku.default@gmail.com>
384+
Mohamad Al-Zawahreh <merchantmoh@gmail.com>
368385
mohammad ali <2018cs92@student.uet.edu.pk>
369386
Mohammed AlDujaili <avainer11@gmail.com>
370387
Mohammed Nafees <hello@mnafees.me>
@@ -449,6 +466,7 @@ Riaje <francois@mbfr.fr>
449466
Ricco Førgaard <ricco@fiskeben.dk>
450467
Richard de Vries <richard.de.vries@topicus.nl>
451468
Rob Figueiredo <robfig@yext.com>
469+
Roger Peppe <rogpeppe@gmail.com>
452470
Rohit Upadhyay <urohit011@gmail.com>
453471
Rojan Dinc <rojand94@gmail.com>
454472
Roman Wu <me@romanwu.com>
@@ -478,6 +496,7 @@ Sanket Payghan <sanket.payghan8@gmail.com>
478496
Sarah Funkhouser <sarah.k.funkhouser@gmail.com>
479497
Sarasa Kisaragi <lingsamuelgrace@gmail.com>
480498
Sasha Melentyev <sasha@melentyev.io>
499+
Scott Dawson <scott@daw.sn>
481500
Sean Wang <sean@decrypted.org>
482501
Sebastian Mandrean <sebastian.mandrean@gmail.com>
483502
Sebastian Mæland Pedersen <sem.pedersen@stud.uis.no>
@@ -542,6 +561,7 @@ Victor Castell <victor@victorcastell.com>
542561
Victor Vrantchan <vrancean+github@gmail.com>
543562
Victory Osikwemhe <osikwemhev@gmail.com>
544563
vikkyomkar <vikky.omkar@samsung.com>
564+
Ville Skyttä <ville.skytta@iki.fi>
545565
Vivek <y.vivekanand@gmail.com>
546566
Vivek Kumar Sahu <vivekkumarsahu650@gmail.com>
547567
Vlad Ungureanu <vladu@palantir.com>
@@ -564,6 +584,7 @@ Yumikiyo Osanai <yumios.art@gmail.com>
564584
Yurii Soldak <ysoldak@gmail.com>
565585
Yusef Mohamadi <yuseferi@gmail.com>
566586
Yusuke Kuoka <ykuoka@gmail.com>
587+
Yuto Kimura <biosugar0@gmail.com>
567588
Zach Latta <zach@zachlatta.com>
568589
Ze Peng <zehui.peng@circle.com>
569590
zhouhaibing089 <zhouhaibing089@gmail.com>

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/v82/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/v83/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/v82
33+
go get github.com/google/go-github/v83
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/v82/github"
41+
import "github.com/google/go-github/v83/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/v82@master
49+
go get github.com/google/go-github/v83@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 v82.0.0
56+
go run tools/gen-release-notes/main.go --tag v83.0.0
5757
```
5858

5959
## Usage ##
6060

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

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

168-
"github.com/google/go-github/v82/github"
168+
"github.com/google/go-github/v83/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/v82/github
437+
[package docs]: https://pkg.go.dev/github.com/google/go-github/v83/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-
| 82.0.0 | 2022-11-28 |
511+
| 83.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/v82/github"
17+
"github.com/google/go-github/v83/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/v82/github"
15+
"github.com/google/go-github/v83/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/v82/github"
25+
"github.com/google/go-github/v83/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/v82/github"
40+
"github.com/google/go-github/v83/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/v82/github"
41+
"github.com/google/go-github/v83/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/v82/github#example-RepositoriesService-CreateFile
16+
// https://pkg.go.dev/github.com/google/go-github/v83/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/v82/github"
36+
"github.com/google/go-github/v83/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/v82/github#example-PullRequestsService-Create
181+
// createPR creates a pull request. Based on: https://pkg.go.dev/github.com/google/go-github/v83/github#example-PullRequestsService-Create
182182
func createPR() (err error) {
183183
if *prSubject == "" {
184184
return errors.New("missing `-pr-title` flag; skipping PR creation")

0 commit comments

Comments
 (0)