Skip to content

Commit 057b1d7

Browse files
authored
Bump version of go-github to v66.0.0 (#3310)
1 parent 29b756d commit 057b1d7

File tree

35 files changed

+47
-46
lines changed

35 files changed

+47
-46
lines changed

README.md

+9-8
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/v65/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/v66/github)
55
[![Test Status](https://github.com/google/go-github/workflows/tests/badge.svg)](https://github.com/google/go-github/actions?query=workflow%3Atests)
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)
@@ -24,29 +24,29 @@ If you're interested in using the [GraphQL API v4][], the recommended library is
2424
go-github is compatible with modern Go releases in module mode, with Go installed:
2525

2626
```bash
27-
go get github.com/google/go-github/v65
27+
go get github.com/google/go-github/v66
2828
```
2929

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

3232
Alternatively the same can be achieved if you use import in a package:
3333

3434
```go
35-
import "github.com/google/go-github/v65/github"
35+
import "github.com/google/go-github/v66/github"
3636
```
3737

3838
and run `go get` without parameters.
3939

4040
Finally, to use the top-of-trunk version of this repo, use the following command:
4141

4242
```bash
43-
go get github.com/google/go-github/v65@master
43+
go get github.com/google/go-github/v66@master
4444
```
4545

4646
## Usage ##
4747

4848
```go
49-
import "github.com/google/go-github/v65/github" // with go modules enabled (GO111MODULE=on or outside GOPATH)
49+
import "github.com/google/go-github/v66/github" // with go modules enabled (GO111MODULE=on or outside GOPATH)
5050
import "github.com/google/go-github/github" // with go modules disabled
5151
```
5252

@@ -119,7 +119,7 @@ import (
119119
"net/http"
120120

121121
"github.com/bradleyfalzon/ghinstallation/v2"
122-
"github.com/google/go-github/v65/github"
122+
"github.com/google/go-github/v66/github"
123123
)
124124

125125
func main() {
@@ -153,7 +153,7 @@ import (
153153
"os"
154154
"strconv"
155155

156-
"github.com/google/go-github/v65/github"
156+
"github.com/google/go-github/v66/github"
157157
"github.com/jferrl/go-githubauth"
158158
"golang.org/x/oauth2"
159159
)
@@ -361,7 +361,7 @@ For complete usage of go-github, see the full [package docs][].
361361

362362
[GitHub API v3]: https://docs.github.com/en/rest
363363
[personal access token]: https://github.com/blog/1509-personal-api-tokens
364-
[package docs]: https://pkg.go.dev/github.com/google/go-github/v65/github
364+
[package docs]: https://pkg.go.dev/github.com/google/go-github/v66/github
365365
[GraphQL API v4]: https://developer.github.com/v4/
366366
[shurcooL/githubv4]: https://github.com/shurcooL/githubv4
367367
[GitHub webhook events]: https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads
@@ -435,6 +435,7 @@ Versions prior to 48.2.0 are not listed.
435435

436436
| go-github Version | GitHub v3 API Version |
437437
| ----------------- | --------------------- |
438+
| 66.0.0 | 2022-11-28 |
438439
| 65.0.0 | 2022-11-28 |
439440
| 64.0.0 | 2022-11-28 |
440441
| 63.0.0 | 2022-11-28 |

example/actionpermissions/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"log"
1515
"os"
1616

17-
"github.com/google/go-github/v65/github"
17+
"github.com/google/go-github/v66/github"
1818
)
1919

2020
var (

example/appengine/app.go

+1-1
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/v65/github"
15+
"github.com/google/go-github/v66/github"
1616
"google.golang.org/appengine"
1717
"google.golang.org/appengine/log"
1818
)

example/basicauth/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"os"
2222
"strings"
2323

24-
"github.com/google/go-github/v65/github"
24+
"github.com/google/go-github/v66/github"
2525
"golang.org/x/term"
2626
)
2727

example/codespaces/newreposecretwithxcrypto/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import (
3636
"log"
3737
"os"
3838

39-
"github.com/google/go-github/v65/github"
39+
"github.com/google/go-github/v66/github"
4040
"golang.org/x/crypto/nacl/box"
4141
)
4242

example/codespaces/newusersecretwithxcrypto/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import (
3737
"log"
3838
"os"
3939

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

example/commitpr/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import (
3333
"time"
3434

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

3939
var (

example/go.mod

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
module github.com/google/go-github/v65/example
1+
module github.com/google/go-github/v66/example
22

33
go 1.21
44

55
require (
66
github.com/ProtonMail/go-crypto v0.0.0-20230828082145-3c4c8a2d2371
77
github.com/bradleyfalzon/ghinstallation/v2 v2.0.4
88
github.com/gofri/go-github-ratelimit v1.0.3
9-
github.com/google/go-github/v65 v65.0.0
9+
github.com/google/go-github/v66 v66.0.0
1010
golang.org/x/crypto v0.21.0
1111
golang.org/x/term v0.18.0
1212
google.golang.org/appengine v1.6.7
@@ -24,4 +24,4 @@ require (
2424
)
2525

2626
// Use version at HEAD, not the latest published.
27-
replace github.com/google/go-github/v65 => ../
27+
replace github.com/google/go-github/v66 => ../

example/listenvironments/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
"log"
1919
"os"
2020

21-
"github.com/google/go-github/v65/github"
21+
"github.com/google/go-github/v66/github"
2222
)
2323

2424
func main() {

example/migrations/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"context"
1313
"fmt"
1414

15-
"github.com/google/go-github/v65/github"
15+
"github.com/google/go-github/v66/github"
1616
)
1717

1818
func fetchAllUserMigrations() ([]*github.UserMigration, error) {

example/newfilewithappauth/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
"time"
1717

1818
"github.com/bradleyfalzon/ghinstallation/v2"
19-
"github.com/google/go-github/v65/github"
19+
"github.com/google/go-github/v66/github"
2020
)
2121

2222
func main() {

example/newrepo/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
"log"
1717
"os"
1818

19-
"github.com/google/go-github/v65/github"
19+
"github.com/google/go-github/v66/github"
2020
)
2121

2222
var (

example/newreposecretwithlibsodium/go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ toolchain go1.22.0
66

77
require (
88
github.com/GoKillers/libsodium-go v0.0.0-20171022220152-dd733721c3cb
9-
github.com/google/go-github/v65 v65.0.0
9+
github.com/google/go-github/v66 v66.0.0
1010
)
1111

1212
require github.com/google/go-querystring v1.1.0 // indirect
1313

1414
// Use version at HEAD, not the latest published.
15-
replace github.com/google/go-github/v65 => ../..
15+
replace github.com/google/go-github/v66 => ../..

example/newreposecretwithlibsodium/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import (
3636
"os"
3737

3838
sodium "github.com/GoKillers/libsodium-go/cryptobox"
39-
"github.com/google/go-github/v65/github"
39+
"github.com/google/go-github/v66/github"
4040
)
4141

4242
var (

example/newreposecretwithxcrypto/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import (
3636
"log"
3737
"os"
3838

39-
"github.com/google/go-github/v65/github"
39+
"github.com/google/go-github/v66/github"
4040
"golang.org/x/crypto/nacl/box"
4141
)
4242

example/ratelimit/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"fmt"
1414

1515
"github.com/gofri/go-github-ratelimit/github_ratelimit"
16-
"github.com/google/go-github/v65/github"
16+
"github.com/google/go-github/v66/github"
1717
)
1818

1919
func main() {

example/simple/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"context"
1313
"fmt"
1414

15-
"github.com/google/go-github/v65/github"
15+
"github.com/google/go-github/v66/github"
1616
)
1717

1818
// Fetch all the public organizations' membership of a user.

example/tagprotection/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
"os"
1919
"strings"
2020

21-
"github.com/google/go-github/v65/github"
21+
"github.com/google/go-github/v66/github"
2222
"golang.org/x/term"
2323
)
2424

example/tokenauth/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
"log"
1616
"os"
1717

18-
"github.com/google/go-github/v65/github"
18+
"github.com/google/go-github/v66/github"
1919
"golang.org/x/term"
2020
)
2121

example/topics/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"context"
1313
"fmt"
1414

15-
"github.com/google/go-github/v65/github"
15+
"github.com/google/go-github/v66/github"
1616
)
1717

1818
// Fetch and lists all the public topics associated with the specified GitHub topic

github/doc.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Package github provides a client for using the GitHub API.
88
99
Usage:
1010
11-
import "github.com/google/go-github/v65/github" // with go modules enabled (GO111MODULE=on or outside GOPATH)
11+
import "github.com/google/go-github/v66/github" // with go modules enabled (GO111MODULE=on or outside GOPATH)
1212
import "github.com/google/go-github/github" // with go modules disabled
1313
1414
Construct a new GitHub client, then use the various services on the client to

github/examples_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"fmt"
1313
"log"
1414

15-
"github.com/google/go-github/v65/github"
15+
"github.com/google/go-github/v66/github"
1616
)
1717

1818
func ExampleMarkdownService_Render() {

github/github.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828
)
2929

3030
const (
31-
Version = "v65.0.0"
31+
Version = "v66.0.0"
3232

3333
defaultAPIVersion = "2022-11-28"
3434
defaultBaseURL = "https://api.github.com/"

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/google/go-github/v65
1+
module github.com/google/go-github/v66
22

33
require (
44
github.com/google/go-cmp v0.6.0

test/fields/fields.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
"reflect"
2626
"strings"
2727

28-
"github.com/google/go-github/v65/github"
28+
"github.com/google/go-github/v66/github"
2929
)
3030

3131
var (

test/integration/activity_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"context"
1313
"testing"
1414

15-
"github.com/google/go-github/v65/github"
15+
"github.com/google/go-github/v66/github"
1616
)
1717

1818
const (

test/integration/authorizations_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
"testing"
1616
"time"
1717

18-
"github.com/google/go-github/v65/github"
18+
"github.com/google/go-github/v66/github"
1919
)
2020

2121
const msgEnvMissing = "Skipping test because the required environment variable (%v) is not present."

test/integration/github_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
"net/http"
1616
"os"
1717

18-
"github.com/google/go-github/v65/github"
18+
"github.com/google/go-github/v66/github"
1919
)
2020

2121
var (

test/integration/repos_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
"testing"
1616

1717
"github.com/google/go-cmp/cmp"
18-
"github.com/google/go-github/v65/github"
18+
"github.com/google/go-github/v66/github"
1919
)
2020

2121
func TestRepositories_CRUD(t *testing.T) {

test/integration/users_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"math/rand"
1515
"testing"
1616

17-
"github.com/google/go-github/v65/github"
17+
"github.com/google/go-github/v66/github"
1818
)
1919

2020
func TestUsers_Get(t *testing.T) {

tools/go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ require (
88
github.com/alecthomas/kong v1.2.1
99
github.com/getkin/kin-openapi v0.127.0
1010
github.com/google/go-cmp v0.6.0
11-
github.com/google/go-github/v65 v65.0.0
11+
github.com/google/go-github/v66 v66.0.0
1212
golang.org/x/sync v0.8.0
1313
gopkg.in/yaml.v3 v3.0.1
1414
)
@@ -25,4 +25,4 @@ require (
2525
)
2626

2727
// Use version at HEAD, not the latest published.
28-
replace github.com/google/go-github/v65 => ../
28+
replace github.com/google/go-github/v66 => ../

tools/metadata/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
"path/filepath"
1616

1717
"github.com/alecthomas/kong"
18-
"github.com/google/go-github/v65/github"
18+
"github.com/google/go-github/v66/github"
1919
)
2020

2121
var helpVars = kong.Vars{

tools/metadata/main_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
"github.com/alecthomas/kong"
2424
"github.com/getkin/kin-openapi/openapi3"
2525
"github.com/google/go-cmp/cmp"
26-
"github.com/google/go-github/v65/github"
26+
"github.com/google/go-github/v66/github"
2727
)
2828

2929
func TestUpdateGo(t *testing.T) {

tools/metadata/metadata.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
"strings"
2525
"sync"
2626

27-
"github.com/google/go-github/v65/github"
27+
"github.com/google/go-github/v66/github"
2828
"gopkg.in/yaml.v3"
2929
)
3030

0 commit comments

Comments
 (0)