From a0147ff8d0bfca7a4ef5abe99b16323b203c281b Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Thu, 2 May 2024 11:37:04 +0200 Subject: [PATCH] doc: simplify copy-pasting of `branch-diff` commands MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/52757 Reviewed-By: Michaƫl Zasso Reviewed-By: Richard Lau Reviewed-By: Mohammed Keyvanzadeh Reviewed-By: Luigi Pinca --- doc/contributing/releases.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/contributing/releases.md b/doc/contributing/releases.md index 2e4a1d2c1faf93..e07c529fcbb962 100644 --- a/doc/contributing/releases.md +++ b/doc/contributing/releases.md @@ -185,7 +185,7 @@ duplicate or not. For a list of commits that could be landed in a minor release on v1.x: ```bash -branch-diff v1.x-staging main --exclude-label=semver-major,dont-land-on-v1.x,backport-requested-v1.x,backport-blocked-v1.x,backport-open-v1.x,backported-to-v1.x --filter-release --format=simple +N=1 sh -c 'branch-diff v$N.x-staging upstream/main --exclude-label=semver-major,dont-land-on-v$N.x,backport-requested-v$N.x,backport-blocked-v$N.x,backport-open-v$N.x,backported-to-v$N.x --filter-release --format=simple' ``` Previously released commits and version bumps do not need to be @@ -204,7 +204,7 @@ When you are ready to cherry-pick commits, you can automate with the following command. ```bash -branch-diff v1.x-staging main --exclude-label=semver-major,dont-land-on-v1.x,backport-requested-v1.x,backport-blocked-v1.x,backport-open-v1.x,backported-to-v1.x --filter-release --format=sha --reverse | xargs git cherry-pick +N=1 sh -c 'branch-diff v$N.x-staging upstream/main --exclude-label=semver-major,dont-land-on-v$N.x,backport-requested-v$N.x,backport-blocked-v$N.x,backport-open-v$N.x,backported-to-v$N.x --filter-release --format=sha --reverse' | xargs git cherry-pick -S ``` For patch releases, make sure to add the `semver-minor` tag