Skip to content

Commit f6bffcf

Browse files
authored
Bump version of go-github library to v46 (#2437)
1 parent 903be14 commit f6bffcf

File tree

37 files changed

+136
-132
lines changed

37 files changed

+136
-132
lines changed

README.md

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

4646
## Usage ##
4747

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

141141
func main() {
@@ -290,7 +290,7 @@ For complete usage of go-github, see the full [package docs][].
290290
[oauth2]: https://github.com/golang/oauth2
291291
[oauth2 docs]: https://godoc.org/golang.org/x/oauth2
292292
[personal API token]: https://github.com/blog/1509-personal-api-tokens
293-
[package docs]: https://pkg.go.dev/github.com/google/go-github/v45/github
293+
[package docs]: https://pkg.go.dev/github.com/google/go-github/v46/github
294294
[GraphQL API v4]: https://developer.github.com/v4/
295295
[shurcooL/githubv4]: https://github.com/shurcooL/githubv4
296296
[GitHub webhook events]: https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads

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/v45/github"
17+
"github.com/google/go-github/v46/github"
1818
"golang.org/x/oauth2"
1919
)
2020

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/v45/github"
15+
"github.com/google/go-github/v46/github"
1616
"golang.org/x/oauth2"
1717
"google.golang.org/appengine"
1818
"google.golang.org/appengine/log"

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/v45/github"
25+
"github.com/google/go-github/v46/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
@@ -31,7 +31,7 @@ import (
3131
"strings"
3232
"time"
3333

34-
"github.com/google/go-github/v45/github"
34+
"github.com/google/go-github/v46/github"
3535
"golang.org/x/oauth2"
3636
)
3737

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/example
1+
module github.com/google/go-github/v46/example
22

33
go 1.17
44

55
require (
66
github.com/bradleyfalzon/ghinstallation/v2 v2.0.4
7-
github.com/google/go-github/v45 v45.0.0
7+
github.com/google/go-github/v46 v46.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/v45 => ../
24+
replace github.com/google/go-github/v46 => ../

example/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ github.com/golang/protobuf v1.3.2 h1:6nsPYzhq5kReh6QImI3k5qWzO4PEbvbIW2cwSfR/6xs
77
github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
88
github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
99
github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
10-
github.com/google/go-cmp v0.5.7 h1:81/ik6ipDQS2aGcBfIN5dHDB36BwrStyeAQquSYCV4o=
11-
github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE=
10+
github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg=
11+
github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
1212
github.com/google/go-github/v41 v41.0.0 h1:HseJrM2JFf2vfiZJ8anY2hqBjdfY1Vlj/K27ueww4gg=
1313
github.com/google/go-github/v41 v41.0.0/go.mod h1:XgmCA5H323A9rtgExdTcnDkcqp6S30AVACCBDOonIxg=
1414
github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8=

example/listenvironments/main.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55

66
// listenvironments is an example of how to use ListEnvironments method with EnvironmentListOptions.
77
// It's runnable with the following command:
8-
// export GITHUB_TOKEN=your_token
9-
// export GITHUB_REPOSITORY_OWNER=your_owner
10-
// export GITHUB_REPOSITORY_NAME=your_repo
11-
// go run .
8+
//
9+
// export GITHUB_TOKEN=your_token
10+
// export GITHUB_REPOSITORY_OWNER=your_owner
11+
// export GITHUB_REPOSITORY_NAME=your_repo
12+
// go run .
1213
package main
1314

1415
import (
@@ -17,7 +18,7 @@ import (
1718
"log"
1819
"os"
1920

20-
"github.com/google/go-github/v45/github"
21+
"github.com/google/go-github/v46/github"
2122
"golang.org/x/oauth2"
2223
)
2324

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/v45/github"
15+
"github.com/google/go-github/v46/github"
1616
"golang.org/x/oauth2"
1717
)
1818

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/v45/github"
19+
"github.com/google/go-github/v46/github"
2020
"golang.org/x/oauth2"
2121
)
2222

0 commit comments

Comments
 (0)