Skip to content

Commit 3c43021

Browse files
authored
doc: add command to get patch minors and majors
PR-URL: #50067 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 9f9c582 commit 3c43021

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

doc/contributing/releases.md

+6
Original file line numberDiff line numberDiff line change
@@ -1279,6 +1279,12 @@ The commits in the generated changelog must then be organized:
12791279
* Remove all reverted commits and their reverts
12801280
* Separate all SEMVER-MAJOR, SEMVER-MINOR, and SEMVER-PATCH commits into lists
12811281

1282+
```console
1283+
$ branch-diff upstream/vN-1.x upstream/vN.x --require-label=semver-major --group --filter-release # get all majors
1284+
$ branch-diff upstream/vN-1.x upstream/vN.x --require-label=semver-minor --group --filter-release # get all minors
1285+
$ branch-diff upstream/vN-1.x upstream/vN.x --exclude-label=semver-major,semver-minor --group --filter-release # get all patches
1286+
```
1287+
12821288
#### Generate the notable changes
12831289

12841290
For a major release, all SEMVER-MAJOR commits that are not strictly internal,

0 commit comments

Comments
 (0)