Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions getting-started/pull-request-lifecycle.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ You should have already :ref:`set up your system <setup>`,

git fetch upstream

* Create a new branch in your local clone from the ``main`` branch
in the upstream repository::
* Create a new branch in your local clone from the `main` branch in the
upstream repository. Include the issue number and a short description
in the branch name, using the format `gh-<number>-<name>`:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure we even need to recommend the name, it does not matter?


git checkout -b <branch-name> upstream/main
git checkout -b gh-12345-fix-example upstream/main

.. note::
Almost all changes to Python, including bug fixes, should first be
Expand Down Expand Up @@ -442,12 +443,13 @@ and for each pull request there may be several commits. In particular:
* Do **not** do cosmetic changes to unrelated code in the same
commit as some feature/bugfix.

Commit messages should follow the following structure::
Commit messages should include the issue number using the
`gh-<number>` format. For example:

Make the spam module more spammy
gh-12345: Fix the spam module

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We generally don't like this, it spams the issue history.


The spam module sporadically came up short on spam. This change
raises the amount of spam in the module by making it more spammy.
The spam module sporadically came up short on spam. This change
raises the amount of spam in the module.

The first line or sentence is meant to be a dense, to-the-point explanation
of what the purpose of the commit is. The imperative form (used in the example
Expand Down