summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2021-12-30 16:29:39 +0100
committerGitHub <noreply@github.com>2021-12-30 16:29:39 +0100
commitf24037746dbfc5dfb72bbbc720fd11db81a57d2e (patch)
treec0bfd43fa0bf5526e0c93461f05db9892b69a3a0 /doc
parented6414333dd73e93810bcd2e3f2c21c241a0ac57 (diff)
parentaf46a4d6359d8a613d70655bf39eaad90cc559c5 (diff)
downloadnixpkgs-f24037746dbfc5dfb72bbbc720fd11db81a57d2e.tar
nixpkgs-f24037746dbfc5dfb72bbbc720fd11db81a57d2e.tar.gz
nixpkgs-f24037746dbfc5dfb72bbbc720fd11db81a57d2e.tar.bz2
nixpkgs-f24037746dbfc5dfb72bbbc720fd11db81a57d2e.tar.lz
nixpkgs-f24037746dbfc5dfb72bbbc720fd11db81a57d2e.tar.xz
nixpkgs-f24037746dbfc5dfb72bbbc720fd11db81a57d2e.tar.zst
nixpkgs-f24037746dbfc5dfb72bbbc720fd11db81a57d2e.zip
Merge pull request #149867 from erikarvstedt/docs-stable-release
docs: improve section `Stable release branches`
Diffstat (limited to 'doc')
-rw-r--r--doc/contributing/submitting-changes.chapter.md16
1 files changed, 13 insertions, 3 deletions
diff --git a/doc/contributing/submitting-changes.chapter.md b/doc/contributing/submitting-changes.chapter.md
index ca3532ea83d..09ffba3dc6f 100644
--- a/doc/contributing/submitting-changes.chapter.md
+++ b/doc/contributing/submitting-changes.chapter.md
@@ -246,11 +246,21 @@ If the branch is already in a broken state, please refrain from adding extra new
 
 ### Stable release branches {#submitting-changes-stable-release-branches}
 
-For cherry-picking a commit to a stable release branch (“backporting”), use `git cherry-pick -x <original commit>` so that the original commit id is included in the commit.
+The same staging workflow applies to stable release branches, but the main branch is called `release-*` instead of `master`.
 
-Add a reason for the backport by using `git cherry-pick -xe <original commit>` instead when it is not obvious from the original commit message. It is not needed when it's a minor version update that includes security and bug fixes but don't add new features or when the commit fixes an otherwise broken package.
+Example branch names: `release-21.11`, `staging-21.11`, `staging-next-21.11`.
 
-For backporting Pull Requests to stable branches, assign label `backport <branch>` to the original Pull Requests and automation should take care of the rest once the Pull Requests is merged.
+Most changes added to the stable release branches are cherry-picked (“backported”) from the `master` and staging branches.
+
+#### Automatically backporting a Pull Request {#submitting-changes-stable-release-branches-automatic-backports}
+
+Assign label `backport <branch>` (e.g. `backport release-21.11`) to the PR and a backport PR is automatically created after the PR is merged.
+
+#### Manually backporting changes {#submitting-changes-stable-release-branches-manual-backports}
+
+Cherry-pick changes via `git cherry-pick -x <original commit>` so that the original commit id is included in the commit message.
+
+Add a reason for the backport when it is not obvious from the original commit message. You can do this by cherry picking with `git cherry-pick -xe <original commit>`, which allows editing the commit message. This is not needed for minor version updates that include security and bug fixes but don't add new features or when the commit fixes an otherwise broken package.
 
 Here is an example of a cherry-picked commit message with good reason description: