|
| 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