-
-
Notifications
You must be signed in to change notification settings - Fork 963
Update pull-request-lifecycle.rst with creating PR title and descriptions (#931) #1626
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
Open
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
4d24e74
Update pull-request-lifecycle.rst
gioviebell 65613fb
Merge branch 'main' into main
gioviebell f1b556b
Update pull-request-lifecycle.rst PR title and description section
gioviebell a11f273
Merge pull request #1 from gioviebell/gioviebell-patch-1
gioviebell File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -213,6 +213,34 @@ should do to help ensure that your pull request is accepted. | |
| the other hand, fixes for typos and grammar errors in documents and | ||
| docstrings are welcome. | ||
|
|
||
| #. **Follow best practices when creating the PR title and description.** The | ||
| pull requests title and description play a pivotal role in code review and | ||
| issue resolution. It is the initial point of contact in a code review, and | ||
| allows the code reviewer to quickly assess the issue. The suggested formatting | ||
| of the title and description is | ||
|
|
||
| **GH-issue number: brief description of what the pull request resolves** | ||
|
|
||
| **Example: GH-123456: Use pure op machinery to optimize various instructions | ||
| with _POP_TOP and _POP_TWO** | ||
|
|
||
| Based on `Best practices for writing good pull request titles`_, a pull request | ||
| title should be descriptive but to the point. It should establish a clear yet brief | ||
| summary, so to allow the code reviewer to quickly assess the pull request. | ||
| The description should explain what was changed in the pull request, why it exists, | ||
| and explain the process of what was done in the pull request. | ||
| Here is an example of a poor and revised pull request description: | ||
| **Poor Pull Request:** "update code" **Revised Pull Request:** | ||
| "feat: add search functionality to user dashboard(closes #111)" | ||
|
Comment on lines
+232
to
+234
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. This has the same issue I mentioned above (which was correct). |
||
|
|
||
| For more examples on writing a good pull request title, please take a look at | ||
| `Best practices for | ||
| writing good pull request titles`_ | ||
|
|
||
| To read more on creating a descriptive pull request description, please review | ||
| `Anatomy of a perfect pull request`_ | ||
|
|
||
|
|
||
| #. **Be aware of backwards-compatibility considerations.** While the core | ||
| developer who eventually handles your pull request will make the final call on | ||
| whether something is acceptable, thinking about backwards-compatibility early | ||
|
|
@@ -606,3 +634,5 @@ accepts your pull request. | |
| .. _issue tracker: https://github.com/python/cpython/issues | ||
| .. _Core Development Discourse category: https://discuss.python.org/c/core-dev/23 | ||
| .. _Release Status: https://buildbot.python.org/all/#/release_status | ||
| .. _Best practices for writing good pull request titles: https://graphite.dev/guides/best-pr-title-guidelines | ||
| .. _Anatomy of a perfect pull request: https://opensource.com/article/18/6/anatomy-perfect-pull-request | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.