summary refs log tree commit diff
path: root/CONTRIBUTING.md
diff options
context:
space:
mode:
authorpiegames <git@piegames.de>2023-06-11 13:36:48 +0200
committerpiegames <git@piegames.de>2023-06-12 00:56:35 +0200
commit6b1052e4e327fdc5b3357e10b0c5111ed5d1f81e (patch)
tree54362a577b128207edf7d80bef8205c8e56ecaf8 /CONTRIBUTING.md
parentf34631c8ce07a4d0619d31b7c219d2d2432527fe (diff)
downloadnixpkgs-6b1052e4e327fdc5b3357e10b0c5111ed5d1f81e.tar
nixpkgs-6b1052e4e327fdc5b3357e10b0c5111ed5d1f81e.tar.gz
nixpkgs-6b1052e4e327fdc5b3357e10b0c5111ed5d1f81e.tar.bz2
nixpkgs-6b1052e4e327fdc5b3357e10b0c5111ed5d1f81e.tar.lz
nixpkgs-6b1052e4e327fdc5b3357e10b0c5111ed5d1f81e.tar.xz
nixpkgs-6b1052e4e327fdc5b3357e10b0c5111ed5d1f81e.tar.zst
nixpkgs-6b1052e4e327fdc5b3357e10b0c5111ed5d1f81e.zip
CONTRIBUTING.md: Add section for mass-ping handling
Diffstat (limited to 'CONTRIBUTING.md')
-rw-r--r--CONTRIBUTING.md37
1 files changed, 35 insertions, 2 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 1ba2ae48da4..88e53b0075a 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -66,9 +66,12 @@ Useful git commands that can help a lot with this are `git commit --patch --amen
 From time to time, changes between branches must be rebased, for example, if the
 number of new rebuilds they would cause is too large for the target branch. When
 rebasing, care must be taken to include only the intended changes, otherwise
-many CODEOWNERS will be inadvertently requested for review.  To achieve this,
+many CODEOWNERS will be inadvertently requested for review. To achieve this,
 rebasing should not be performed directly on the target branch, but on the merge
-base between the current and target branch.
+base between the current and target branch. As an additional precautionary measure,
+you should temporarily mark the PR as draft for the duration of the operation.
+This reduces the probability of mass-pinging people. (OfBorg might still
+request a couple of persons for reviews though.)
 
 In the following example, we assume that the current branch, called `feature`,
 is based on `master`, and we rebase it onto the merge base between
@@ -102,6 +105,36 @@ git status
 git push origin feature --force-with-lease
 ```
 
+### Something went wrong and a lot of people were pinged
+
+It happens. Remember to be kind, especially to new contributors.
+There is no way back, so the pull request should be closed and locked
+(if possible). The changes should be re-submitted in a new PR, in which the people
+originally involved in the conversation need to manually be pinged again.
+No further discussion should happen on the original PR, as a lot of people
+are now subscribed to it.
+
+The following message (or a version thereof) might be left when closing to
+describe the situation, since closing and locking without any explanation
+is kind of rude:
+
+```markdown
+It looks like you accidentally mass-pinged a bunch of people, which are now subscribed
+and getting notifications for everything in this pull request. Unfortunately, they
+cannot be automatically unsubscribed from the issue (removing review request does not
+unsubscribe), therefore development cannot continue in this pull request anymore.
+
+Please open a new pull request with your changes, link back to this one and ping the
+people actually involved in here over there.
+
+In order to avoid this in the future, there are instructions for how to properly
+rebase between branches in our [contribution guidelines](https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md#rebasing-between-branches-ie-from-master-to-staging).
+Setting your pull request to draft prior to rebasing is strongly recommended.
+In draft status, you can preview the list of people that are about to be requested
+for review, which allows you to sidestep this issue.
+This is not a bulletproof method though, as OfBorg still does review requests even on draft PRs.
+```
+
 ## Backporting changes
 
 Follow these steps to backport a change into a release branch in compliance with the [commit policy](https://nixos.org/nixpkgs/manual/#submitting-changes-stable-release-branches).