You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-4Lines changed: 11 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,6 +49,13 @@ Finally, to use the top-of-trunk version of this repo, use the following command
49
49
go get github.com/google/go-github/v82@master
50
50
```
51
51
52
+
To discover all the changes that have occured since a prior release, you can
53
+
first clone the repo, then run (for example):
54
+
55
+
```bash
56
+
go run tools/gen-release-notes/main.go --tag v82.0.0
57
+
```
58
+
52
59
## Usage ##
53
60
54
61
```go
@@ -297,7 +304,7 @@ client := github.NewClient(
297
304
298
305
Alternatively, the [bored-engineer/github-conditional-http-transport](https://github.com/bored-engineer/github-conditional-http-transport)
299
306
package relies on (undocumented) GitHub specific cache logic and is
300
-
recommended when making requests using short-lived credentials such as a
307
+
recommended when making requests using short-lived credentials such as a
With the `enrichman/gh-iter` package, it is possible to create iterators for `go-github`. The iterator will handle pagination for you, looping through all the available results.
356
363
@@ -370,8 +377,8 @@ For complete usage of `enrichman/gh-iter`, see the full [package docs](https://g
370
377
#### Middleware ####
371
378
372
379
You can use [gofri/go-github-pagination](https://github.com/gofri/go-github-pagination) to handle
373
-
pagination for you. It supports both sync and async modes, as well as customizations.
374
-
By default, the middleware automatically paginates through all pages, aggregates results, and returns them as an array.
380
+
pagination for you. It supports both sync and async modes, as well as customizations.
381
+
By default, the middleware automatically paginates through all pages, aggregates results, and returns them as an array.
// Use of this source code is governed by a BSD-style
4
4
// license that can be found in the LICENSE file.
5
5
6
-
// gen-release-notes first reads the web page https://github.com/google/go-github
7
-
// to determine what the prior release was, (e.g. "v76.0.0")
8
-
// then reads https://github.com/google/go-github/compare/commit-list?range=${PRIOR_RELEASE}...master
9
-
// to find out what changes were made since then.
6
+
// gen-release-notes calls `git` to determine what the prior release was, (e.g. "v76.0.0")
7
+
// then calls `git` again to find out what changes were made since then.
10
8
//
11
9
// Finally, it writes the release notes to stdout, summarizing the
12
10
// breaking and non-breaking changes since that release.
11
+
//
12
+
// Usage:
13
+
//
14
+
// go run tools/gen-release-notes/main.go [--tag v76.0.0]
0 commit comments