Skip to content

Commit 3685c1b

Browse files
authored
Merge pull request #3192 from nicoddemus/pr-template
Add changelog/README.rst and streamline our PR template text
2 parents 16c52f0 + eea169e commit 3685c1b

File tree

5 files changed

+39
-10
lines changed

5 files changed

+39
-10
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
Thanks for submitting a PR, your contribution is really appreciated!
22

3-
Here's a quick checklist that should be present in PRs:
3+
Here's a quick checklist that should be present in PRs (you can delete this text from the final description, this is
4+
just a guideline):
45

5-
- [ ] Add a new news fragment into the changelog folder
6-
* name it `$issue_id.$type` for example (588.bugfix)
7-
* if you don't have an issue_id change it to the pr id after creating the pr
8-
* ensure type is one of `removal`, `feature`, `bugfix`, `vendor`, `doc` or `trivial`
9-
* Make sure to use full sentences with correct case and punctuation, for example: "Fix issue with non-ascii contents in doctest text files."
10-
- [ ] Target: for `bugfix`, `vendor`, `doc` or `trivial` fixes, target `master`; for removals or features target `features`;
11-
- [ ] Make sure to include reasonable tests for your change if necessary
6+
- [ ] Create a new changelog file in the `changelog` folder, with a name like `<ISSUE NUMBER>.<TYPE>.rst`. See [changelog/README.rst](/changelog/README.rst) for details.
7+
- [ ] Target the `master` branch for bug fixes, documentation updates and trivial changes.
8+
- [ ] Target the `features` branch for new features and removals/deprecations.
9+
- [ ] Include documentation when adding new features.
10+
- [ ] Include new tests or update existing tests when applicable.
1211

13-
Unless your change is a trivial or a documentation fix (e.g., a typo or reword of a small section) please:
12+
Unless your change is trivial or a small documentation fix (e.g., a typo or reword of a small section) please:
1413

15-
- [ ] Add yourself to `AUTHORS`, in alphabetical order;
14+
- [ ] Add yourself to `AUTHORS` in alphabetical order;
File renamed without changes.
File renamed without changes.
File renamed without changes.

changelog/README.rst

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
This directory contains "newsfragments" which are short that contain a small **ReST**-formatted
2+
text that will be added to the next ``CHANGELOG``.
3+
4+
The ``CHANGELOG`` will be read by users, so this description should be aimed to pytest users
5+
instead of describing internal changes which are only relevant to the developers.
6+
7+
Make sure to use full sentences with correct case and punctuation, for example: *Fix issue with non-ascii contents in doctest text files.*
8+
9+
Each file should be named like ``<ISSUE>.<TYPE>.rst``, where
10+
``<ISSUE>`` is an issue number, and ``<TYPE>`` is one of:
11+
12+
* ``feature``: new user facing features, like new command-line options and new behavior.
13+
* ``bugfix``: fixes a reported bug.
14+
* ``doc``: documentation improvement, like rewording an entire session or adding missing docs.
15+
* ``removal``: feature deprecation or removal.
16+
* ``vendor``: changes in packages vendored in pytest.
17+
* ``trivial``: fixing a small typo or internal change that might be noteworthy.
18+
19+
So for example: ``123.feature.rst``, ``456.bugfix.rst``.
20+
21+
If your PR fixes an issue, use that number here. If there is no issue,
22+
then after you submit the PR and get the PR number you can add a
23+
changelog using that instead.
24+
25+
If you are not sure what issue type to use, don't hesitate to ask in your PR.
26+
27+
Note that the ``towncrier`` tool will automatically
28+
reflow your text, so it will work best if you stick to a single paragraph, but multiple sentences and links are OK
29+
and encouraged. You can install ``towncrier`` and then run ``towncrier --draft``
30+
if you want to get a preview of how your change will look in the final release notes.

0 commit comments

Comments
 (0)