From 3c430212c323f285b54c1c031987349064b59f36 Mon Sep 17 00:00:00 2001 From: Rafael Gonzaga Date: Sun, 8 Oct 2023 18:36:47 -0300 Subject: [PATCH] doc: add command to get patch minors and majors PR-URL: https://github.com/nodejs/node/pull/50067 Reviewed-By: Antoine du Hamel Reviewed-By: Geoffrey Booth Reviewed-By: Richard Lau Reviewed-By: Luigi Pinca --- doc/contributing/releases.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/contributing/releases.md b/doc/contributing/releases.md index bf34bff850c678..04d005ad8258a8 100644 --- a/doc/contributing/releases.md +++ b/doc/contributing/releases.md @@ -1279,6 +1279,12 @@ The commits in the generated changelog must then be organized: * Remove all reverted commits and their reverts * Separate all SEMVER-MAJOR, SEMVER-MINOR, and SEMVER-PATCH commits into lists +```console +$ branch-diff upstream/vN-1.x upstream/vN.x --require-label=semver-major --group --filter-release # get all majors +$ branch-diff upstream/vN-1.x upstream/vN.x --require-label=semver-minor --group --filter-release # get all minors +$ branch-diff upstream/vN-1.x upstream/vN.x --exclude-label=semver-major,semver-minor --group --filter-release # get all patches +``` + #### Generate the notable changes For a major release, all SEMVER-MAJOR commits that are not strictly internal,