Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

docs: Be clear that PRs should be made from a feature branch.

Anders Kaseorg8043d96dd182
diff --git a/docs/git/pull-requests.md b/docs/git/pull-requests.md
index 0cba91b181f..d50b6cb9f43 100644
--- a/docs/git/pull-requests.md
+++ b/docs/git/pull-requests.md
@@ -26,6 +26,18 @@ work from being merged before you're confident in it.
## Create a pull request
+### Step 0: Make sure you're on a feature branch (not `master`)
+
+It is important to [work on a feature
+branch](using.html#work-on-a-feature-branch) when creating a pull
+request. Your new pull request will be inextricably linked with your
+branch while it is open, so you will need to reserve your branch only
+for changes related to your issue, and avoid introducing extraneous
+changes for other issues or from upstream.
+
+If you are working on a branch named `master`, you need to create and
+switch to a feature branch before proceeding.
+
### Step 1: Update your branch with git rebase
The best way to update your branch is with `git fetch` and `git rebase`. Do not