From 8e7a787a0291c18eead56d9a1a887dc378eed364 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Tue, 10 Oct 2023 17:05:33 +0200 Subject: [PATCH 1/3] Add a note about populating the PR from a template. --- CONTRIBUTING.rst | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index 558e91a7e19..baba5d711e3 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -42,6 +42,17 @@ a discussion venue appropriate to the PEP (such as `Typing Discourse typing, or `Packaging Discourse `__ for packaging), or `open an issue `__. +Creating a PEP PR +----------------- + +If you use the Github command line tool, you may be accustomed to creating PRs by +following the URL that is provided after pushing a new branch. **Do not use this link**, +as it does not provide the option to populate the PR template. + +Instead, after pushing your branch, you should visit `https://github.com/python/peps +`__, and follow the link in the yellow notification +about recent changes to your branch. This will allow you to select a PR template for +your new PR. Commit messages and PR titles ----------------------------- @@ -56,7 +67,7 @@ the Readme/Contributing Guide, issue/PR template, etc., with ``Meta:``. Sign the Contributor License Agreement -------------------------------------- -All contributors need to sign the +All contributors need to sign the `PSF Contributor Agreement `_. to ensure we legally accept your work. From ed6b7e495249848c307fd104d9a890c5d23a5505 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Wed, 11 Oct 2023 08:31:09 +0200 Subject: [PATCH 2/3] Add a note about using gh pr create. --- CONTRIBUTING.rst | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index baba5d711e3..fb7cbf31a8b 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -42,17 +42,25 @@ a discussion venue appropriate to the PEP (such as `Typing Discourse typing, or `Packaging Discourse `__ for packaging), or `open an issue `__. -Creating a PEP PR ------------------ +Opening a pull request +---------------------- -If you use the Github command line tool, you may be accustomed to creating PRs by -following the URL that is provided after pushing a new branch. **Do not use this link**, -as it does not provide the option to populate the PR template. +The PEPs repository defines a set of pull request templates, which should be +used when opening a PR. -Instead, after pushing your branch, you should visit `https://github.com/python/peps -`__, and follow the link in the yellow notification -about recent changes to your branch. This will allow you to select a PR template for -your new PR. +If you use the git from the command line, you may be accustomed to creating PRs +by following the URL that is provided after pushing a new branch. **Do not use +this link**, as it does not provide the option to populate the PR template. + +However, you *can* use the ``gh`` command line tool. ``gh pr create`` will allow +you to create a pull request, will prompt you for the template you wish to use, +and then give you the option of continuing editing in your broswer. + +Alternatively, after pushing your branch, you can visit +`https://github.com/python/peps `__, and follow +the link in the yellow notification about recent changes to your branch to +create a new PR. The in-browser interface will allow you to select a PR template +for your new PR. Commit messages and PR titles ----------------------------- From 6d2a3649ce647338594ade7a75f7f93671328d77 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Wed, 11 Oct 2023 10:44:31 +0200 Subject: [PATCH 3/3] Apply suggestions from code review Co-authored-by: Hugo van Kemenade --- CONTRIBUTING.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index fb7cbf31a8b..bc514127158 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -48,7 +48,7 @@ Opening a pull request The PEPs repository defines a set of pull request templates, which should be used when opening a PR. -If you use the git from the command line, you may be accustomed to creating PRs +If you use Git from the command line, you may be accustomed to creating PRs by following the URL that is provided after pushing a new branch. **Do not use this link**, as it does not provide the option to populate the PR template. @@ -58,7 +58,7 @@ and then give you the option of continuing editing in your broswer. Alternatively, after pushing your branch, you can visit `https://github.com/python/peps `__, and follow -the link in the yellow notification about recent changes to your branch to +the link in the notification about recent changes to your branch to create a new PR. The in-browser interface will allow you to select a PR template for your new PR.