Skip to content

Commit 8b5e8e0

Browse files
committed
Merge remote-tracking branch 'forkstream/master' into postEnterpriseSCIM
* forkstream/master: chore!: Remove `PullRequestRuleParameters.AutomaticCopilotCodeReviewEnabled` field (google#3866) feat: Add support for `copilot_code_review` rule type (google#3857) feat: Implement Enterprise SCIM - Delete Groups or Users (google#3856) feat: Add `advanced_search` parameter to `SearchOptions` (google#3868) fix!: Change Org usage report `Quantity` to `float64` (google#3862) build(deps): Bump actions/checkout from 6.0.0 to 6.0.1 in the actions group (google#3863) build(deps): Bump golang.org/x/sync from 0.18.0 to 0.19.0 in /tools (google#3864) build(deps): Bump golang.org/x/term from 0.37.0 to 0.38.0 in /example (google#3865) feat: Implement Enterprise SCIM - Set Groups or Users (google#3858) feat: Add support for Enterprise Team APIs (google#3861) Bump go-github from v79 to v80 in /scrape (google#3855) Bump version of go-github to v80.0.0 (google#3854) feat: Add repository target to ruleset (google#3850)
2 parents cd6b534 + f093aaa commit 8b5e8e0

File tree

59 files changed

+1415
-173
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+1415
-173
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/v79/tools/fmtpercentv"
3+
- module: "github.com/google/go-github/v80/tools/fmtpercentv"
44
path: ./tools/fmtpercentv
5-
- module: "github.com/google/go-github/v79/tools/sliceofpointers"
5+
- module: "github.com/google/go-github/v80/tools/sliceofpointers"
66
path: ./tools/sliceofpointers
7-
- module: "github.com/google/go-github/v79/tools/structfield"
7+
- module: "github.com/google/go-github/v80/tools/structfield"
88
path: ./tools/structfield

.github/workflows/linter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
lint:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
11+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
1212
- uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
1313
with:
1414
go-version: 1.x

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
- uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
4646
with:
4747
go-version: ${{ matrix.go-version }}
48-
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
48+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
4949

5050
# Get values for cache paths to be used in later steps
5151
- id: cache-paths

.golangci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,15 +151,15 @@ linters:
151151
fmtpercentv:
152152
type: module
153153
description: Reports usage of %d or %s in format strings.
154-
original-url: github.com/google/go-github/v79/tools/fmtpercentv
154+
original-url: github.com/google/go-github/v80/tools/fmtpercentv
155155
sliceofpointers:
156156
type: module
157157
description: Reports usage of []*string and slices of structs without pointers.
158-
original-url: github.com/google/go-github/v79/tools/sliceofpointers
158+
original-url: github.com/google/go-github/v80/tools/sliceofpointers
159159
structfield:
160160
type: module
161161
description: Reports mismatches between Go field and JSON, URL tag names and types.
162-
original-url: github.com/google/go-github/v79/tools/structfield
162+
original-url: github.com/google/go-github/v80/tools/structfield
163163
settings:
164164
allowed-tag-names:
165165
- ActionsCacheUsageList.RepoCacheUsage # TODO: RepoCacheUsages ?

README.md

Lines changed: 10 additions & 10 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/v79/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/v80/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,29 +30,29 @@ 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/v79
33+
go get github.com/google/go-github/v80
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/v79/github"
41+
import "github.com/google/go-github/v80/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/v79@master
49+
go get github.com/google/go-github/v80@master
5050
```
5151

5252
## Usage ##
5353

5454
```go
55-
import "github.com/google/go-github/v79/github" // with go modules enabled (GO111MODULE=on or outside GOPATH)
55+
import "github.com/google/go-github/v80/github" // with go modules enabled (GO111MODULE=on or outside GOPATH)
5656
import "github.com/google/go-github/github" // with go modules disabled
5757
```
5858

@@ -102,7 +102,7 @@ include the specified OAuth token. Therefore, authenticated clients should
102102
almost never be shared between different users.
103103

104104
For API methods that require HTTP Basic Authentication, use the
105-
[`BasicAuthTransport`](https://pkg.go.dev/github.com/google/go-github/v79/github#BasicAuthTransport).
105+
[`BasicAuthTransport`](https://pkg.go.dev/github.com/google/go-github/v80/github#BasicAuthTransport).
106106

107107
#### As a GitHub App ####
108108

@@ -125,7 +125,7 @@ import (
125125
"net/http"
126126

127127
"github.com/bradleyfalzon/ghinstallation/v2"
128-
"github.com/google/go-github/v79/github"
128+
"github.com/google/go-github/v80/github"
129129
)
130130

131131
func main() {
@@ -159,7 +159,7 @@ import (
159159
"os"
160160
"strconv"
161161

162-
"github.com/google/go-github/v79/github"
162+
"github.com/google/go-github/v80/github"
163163
"github.com/jferrl/go-githubauth"
164164
"golang.org/x/oauth2"
165165
)
@@ -400,7 +400,7 @@ For complete usage of go-github, see the full [package docs][].
400400

401401
[GitHub API v3]: https://docs.github.com/en/rest
402402
[personal access token]: https://github.com/blog/1509-personal-api-tokens
403-
[package docs]: https://pkg.go.dev/github.com/google/go-github/v79/github
403+
[package docs]: https://pkg.go.dev/github.com/google/go-github/v80/github
404404
[GraphQL API v4]: https://developer.github.com/v4/
405405
[shurcooL/githubv4]: https://github.com/shurcooL/githubv4
406406
[GitHub webhook events]: https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads
@@ -474,7 +474,7 @@ Versions prior to 48.2.0 are not listed.
474474

475475
| go-github Version | GitHub v3 API Version |
476476
| ----------------- | --------------------- |
477-
| 79.0.0 | 2022-11-28 |
477+
| 80.0.0 | 2022-11-28 |
478478
| ... | 2022-11-28 |
479479
| 48.2.0 | 2022-11-28 |
480480

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/v79/github"
17+
"github.com/google/go-github/v80/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/v79/github"
15+
"github.com/google/go-github/v80/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/v79/github"
25+
"github.com/google/go-github/v80/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/v79/github"
40+
"github.com/google/go-github/v80/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/v79/github"
41+
"github.com/google/go-github/v80/github"
4242
"golang.org/x/crypto/nacl/box"
4343
)
4444

0 commit comments

Comments
 (0)