Skip to content

Add a section to the PR guide on how to write good titles and descriptions#1845

Open
sirosen wants to merge 1 commit into
python:mainfrom
sirosen:add-pr-title-and-desc-guidance
Open

Add a section to the PR guide on how to write good titles and descriptions#1845
sirosen wants to merge 1 commit into
python:mainfrom
sirosen:add-pr-title-and-desc-guidance

Conversation

@sirosen

@sirosen sirosen commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Add a short section to the PR guide which covers good titles and descriptions, at a summary level.

The priority here is (in presentation order):

  • explain the rationale / why we care
  • demonstrate how a PR title should look
  • give some hint as to what a good description will look like

Explaining how to write good technical prose for a PR description is considered out of scope, which limits the content of the PR description section.


Resolves #931
Supersedes prior PRs, and therefore

Add a short section to the PR guide which covers good titles and
descriptions, at a summary level.

The priority here is (in presentation order):
- explain the rationale / why we care
- demonstrate how a PR title should look
- give some hint as to what a good description will look like

Explaining how to write good technical prose for a PR description is
considered out of scope, which limits the content of the PR description
section.
@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 CPython devguide | 🛠️ Build #33317506 | 📁 Comparing 099ddc5 against latest (0164145)

  🔍 Preview build  

3 files changed
± getting-started/index.html
± versions/index.html
± getting-started/pull-request-lifecycle/index.html

Comment on lines +213 to +214
pull request does in short form. It should start with ``gh-NNNNNN:``, for pull
requests which close open issues.

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.

Suggested change
pull request does in short form. It should start with ``gh-NNNNNN:``, for pull
requests which close open issues.
pull request does in short form. Pull requests attached to issues should
be linked by putting the issue number in the title (``gh-NNNNNN:``).

A rough suggestion. For two reasons:

  • We don't clarify what gh-NNNN: actually is.
  • They don't always close issues, but we still want the ref for follow-ups, backports etc.

The title should be a sentence or phrase in the imperative which says what the
pull request does in short form. It should start with ``gh-NNNNNN:``, for pull
requests which close open issues.
For example, ``gh-12345: Fix bug when spam module is served with eggs``.

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.

Some of this is duplicated in the Submitting section. To me, the Making good PRs section seems like a checklist about the change itself, not a checklist for the PR on GitHub.

I think, looking at the (albeit quite terrible) flow, this section is too early (the following section here is about pre-submission things, for example), and can be merged with the duplicated content in Submitting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve the "Making Good PRs" section

2 participants