-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Add a section to the PR guide on how to write good titles and descriptions #1845
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -203,6 +203,24 @@ should do to help ensure that your pull request is accepted. | |
|
|
||
| #. Proper :ref:`documentation <documenting>` additions/changes should be included. | ||
|
|
||
| Write good titles and descriptions | ||
| ---------------------------------- | ||
|
|
||
| Reviewers want to be able to understand roughly what your pull request does | ||
| before reading the changes. | ||
|
|
||
| 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``. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
|
|
||
| The pull request description field should be a detailed summary. | ||
| This is a great place to note caveats, provide links to references, and explain | ||
| decisions made in the pull request. | ||
| Avoid over-explaining: simpler descriptions are easier to read, so make sure not | ||
| to write large descriptions for simple changes. | ||
|
|
||
|
|
||
| .. _news-entry: | ||
| .. _what-s-new-and-news-entries: | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A rough suggestion. For two reasons:
gh-NNNN:actually is.