Skip to content

Commit 0a64740

Browse files
authored
Bump version of go-github to v52.0.0 (#2766)
1 parent 848d85f commit 0a64740

File tree

30 files changed

+39
-66
lines changed

30 files changed

+39
-66
lines changed

README.md

Lines changed: 8 additions & 7 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-
[![GoDoc](https://img.shields.io/static/v1?label=godoc&message=reference&color=blue)](https://pkg.go.dev/github.com/google/go-github/v51/github)
4+
[![GoDoc](https://img.shields.io/static/v1?label=godoc&message=reference&color=blue)](https://pkg.go.dev/github.com/google/go-github/v52/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 go-github@googlegroups.com](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/v51
27+
go get github.com/google/go-github/v52
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/v51/github"
35+
import "github.com/google/go-github/v52/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/v51@master
43+
go get github.com/google/go-github/v52@master
4444
```
4545

4646
## Usage ##
4747

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

@@ -135,7 +135,7 @@ import (
135135
"net/http"
136136

137137
"github.com/bradleyfalzon/ghinstallation/v2"
138-
"github.com/google/go-github/v51/github"
138+
"github.com/google/go-github/v52/github"
139139
)
140140

141141
func main() {
@@ -323,7 +323,7 @@ For complete usage of go-github, see the full [package docs][].
323323
[oauth2]: https://github.com/golang/oauth2
324324
[oauth2 docs]: https://godoc.org/golang.org/x/oauth2
325325
[personal API token]: https://github.com/blog/1509-personal-api-tokens
326-
[package docs]: https://pkg.go.dev/github.com/google/go-github/v51/github
326+
[package docs]: https://pkg.go.dev/github.com/google/go-github/v52/github
327327
[GraphQL API v4]: https://developer.github.com/v4/
328328
[shurcooL/githubv4]: https://github.com/shurcooL/githubv4
329329
[GitHub webhook events]: https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads
@@ -396,6 +396,7 @@ Versions prior to 48.2.0 are not listed.
396396

397397
| go-github Version | GitHub v3 API Version |
398398
| ----------------- | --------------------- |
399+
| 52.0.0 | 2022-11-28 |
399400
| 51.0.0 | 2022-11-28 |
400401
| 50.2.0 | 2022-11-28 |
401402
| 50.1.0 | 2022-11-28 |

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/v51/github"
17+
"github.com/google/go-github/v52/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/v51/github"
15+
"github.com/google/go-github/v52/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
"strings"
2323
"syscall"
2424

25-
"github.com/google/go-github/v51/github"
25+
"github.com/google/go-github/v52/github"
2626
"golang.org/x/crypto/ssh/terminal"
2727
)
2828

example/commitpr/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import (
3030
"strings"
3131
"time"
3232

33-
"github.com/google/go-github/v51/github"
33+
"github.com/google/go-github/v52/github"
3434
)
3535

3636
var (

example/go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
module github.com/google/go-github/v51/example
1+
module github.com/google/go-github/v52/example
22

33
go 1.17
44

55
require (
66
github.com/bradleyfalzon/ghinstallation/v2 v2.0.4
77
github.com/gofri/go-github-ratelimit v1.0.1
8-
github.com/google/go-github/v51 v51.0.0
8+
github.com/google/go-github/v52 v52.0.0
99
golang.org/x/crypto v0.1.0
1010
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be
1111
google.golang.org/appengine v1.6.7
@@ -22,4 +22,4 @@ require (
2222
)
2323

2424
// Use version at HEAD, not the latest published.
25-
replace github.com/google/go-github/v51 => ../
25+
replace github.com/google/go-github/v52 => ../

example/listenvironments/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
"log"
1919
"os"
2020

21-
"github.com/google/go-github/v51/github"
21+
"github.com/google/go-github/v52/github"
2222
)
2323

2424
func main() {

example/migrations/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"context"
1313
"fmt"
1414

15-
"github.com/google/go-github/v51/github"
15+
"github.com/google/go-github/v52/github"
1616
)
1717

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

example/newfilewithappauth/main.go

Lines changed: 1 addition & 1 deletion
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/v51/github"
19+
"github.com/google/go-github/v52/github"
2020
"golang.org/x/oauth2"
2121
)
2222

example/newrepo/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
"log"
1717
"os"
1818

19-
"github.com/google/go-github/v51/github"
19+
"github.com/google/go-github/v52/github"
2020
)
2121

2222
var (

0 commit comments

Comments
 (0)