Skip to content

Commit b811c42

Browse files
authored
Bump version of go-github to v50 (#2647)
1 parent aa2c143 commit b811c42

File tree

28 files changed

+39
-37
lines changed

28 files changed

+39
-37
lines changed

README.md

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

4646
## Usage ##
4747

4848
```go
49-
import "github.com/google/go-github/v49/github" // with go modules enabled (GO111MODULE=on or outside GOPATH)
49+
import "github.com/google/go-github/v50/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/v49/github"
138+
"github.com/google/go-github/v50/github"
139139
)
140140

141141
func main() {
@@ -305,7 +305,7 @@ For complete usage of go-github, see the full [package docs][].
305305
[oauth2]: https://github.com/golang/oauth2
306306
[oauth2 docs]: https://godoc.org/golang.org/x/oauth2
307307
[personal API token]: https://github.com/blog/1509-personal-api-tokens
308-
[package docs]: https://pkg.go.dev/github.com/google/go-github/v49/github
308+
[package docs]: https://pkg.go.dev/github.com/google/go-github/v50/github
309309
[GraphQL API v4]: https://developer.github.com/v4/
310310
[shurcooL/githubv4]: https://github.com/shurcooL/githubv4
311311
[GitHub webhook events]: https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads
@@ -378,6 +378,8 @@ Versions prior to 48.2.0 are not listed.
378378

379379
| go-github Version | GitHub v3 API Version |
380380
| ----------------- | --------------------- |
381+
| 50.0.0 | 2022-11-28 |
382+
| 49.1.0 | 2022-11-28 |
381383
| 49.0.0 | 2022-11-28 |
382384
| 48.2.0 | 2022-11-28 |
383385

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/v49/github"
17+
"github.com/google/go-github/v50/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/v49/github"
15+
"github.com/google/go-github/v50/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/v49/github"
25+
"github.com/google/go-github/v50/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/v49/github"
33+
"github.com/google/go-github/v50/github"
3434
)
3535

3636
var (

example/go.mod

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

33
go 1.17
44

55
require (
66
github.com/bradleyfalzon/ghinstallation/v2 v2.0.4
7-
github.com/google/go-github/v49 v49.0.0
7+
github.com/google/go-github/v50 v50.0.0
88
golang.org/x/crypto v0.0.0-20210817164053-32db794688a5
99
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be
1010
google.golang.org/appengine v1.6.7
@@ -21,4 +21,4 @@ require (
2121
)
2222

2323
// Use version at HEAD, not the latest published.
24-
replace github.com/google/go-github/v49 => ../
24+
replace github.com/google/go-github/v50 => ../

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/v49/github"
21+
"github.com/google/go-github/v50/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/v49/github"
15+
"github.com/google/go-github/v50/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/v49/github"
19+
"github.com/google/go-github/v50/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/v49/github"
19+
"github.com/google/go-github/v50/github"
2020
)
2121

2222
var (

0 commit comments

Comments
 (0)