2020-04-24 17:54:58 +00:00
|
|
|
This directory collects "newsfragments": short files that each contain
|
|
|
|
a snippet of ReST-formatted text that will be added to the next
|
|
|
|
release notes. This should be a description of aspects of the change
|
2021-06-29 14:33:27 +00:00
|
|
|
(if any) that are relevant to users. It contrasts with the
|
|
|
|
commit message and PR description, which are descriptions of the change
|
|
|
|
relevant to people working on the code itself.
|
2020-04-24 17:54:58 +00:00
|
|
|
|
2021-06-29 14:33:27 +00:00
|
|
|
The pull request (PR) number should be included in the newsfragment file name. Each newsfragment file
|
2020-11-03 19:49:57 +00:00
|
|
|
should be named `<PR_NUMBER>.<TYPE>.rst`, where `<TYPE>` is one of:
|
2020-04-24 17:54:58 +00:00
|
|
|
|
2021-06-29 14:33:27 +00:00
|
|
|
* `feature` - features
|
|
|
|
* `bugfix` - bugfixes
|
|
|
|
* `doc` - documentation
|
|
|
|
* `removal` - deprecations and removals
|
|
|
|
* `misc` - other
|
2022-11-17 14:29:45 +00:00
|
|
|
* `dev` - internal development tasks
|
2020-04-24 17:54:58 +00:00
|
|
|
|
2021-06-29 14:33:27 +00:00
|
|
|
For example: `123.feature.rst`, `456.bugfix.rst`, `789.doc.rst`.
|
|
|
|
|
|
|
|
There can be multiple newsfragment files of different types for the same PR
|
|
|
|
e.g. `123.feature.rst` and `123.removal.rst`.
|
2020-04-24 17:54:58 +00:00
|
|
|
|
2020-11-03 19:49:57 +00:00
|
|
|
Along with the required PR newsfragment file (enforced by a GitHub Action),
|
|
|
|
additional newsfragment files for issues linked to the PR can optionally be
|
|
|
|
included by following the same naming convention above, and
|
|
|
|
using `<ISSUE_NUMBER>` instead of `<PR_NUMBER>`.
|
|
|
|
|
2020-04-24 17:54:58 +00:00
|
|
|
Note that the `towncrier` tool will automatically
|
|
|
|
reflow your text, so don't try to do any fancy formatting. Run
|
2021-06-29 14:33:27 +00:00
|
|
|
`towncrier --draft` to preview what the release notes entry
|
2020-04-24 17:54:58 +00:00
|
|
|
will look like in the final release notes.
|