| 1 |
##################### |
| 2 |
Changelog Fragments |
| 3 |
##################### |
| 4 |
|
| 5 |
This directory contains changelog fragments for the next release. Each PR should include a fragment file describing the |
| 6 |
change. |
| 7 |
|
| 8 |
******************** |
| 9 |
Creating Fragments |
| 10 |
******************** |
| 11 |
|
| 12 |
Create a file named ``<pr_number>.<type>.rst`` where type is one of: |
| 13 |
|
| 14 |
- ``feature`` - new functionality |
| 15 |
- ``bugfix`` - bug fix |
| 16 |
- ``doc`` - documentation improvement |
| 17 |
- ``removal`` - deprecation or removal |
| 18 |
- ``misc`` - internal change (not user-visible) |
| 19 |
|
| 20 |
Example: ``991.feature.rst`` |
| 21 |
|
| 22 |
Content should be a single line describing the change: |
| 23 |
|
| 24 |
:: |
| 25 |
|
| 26 |
Add support for custom build backends - by :user:`yourname` |
| 27 |
|
| 28 |
Use ``:issue:`123``` to reference issues and ``:user:`name``` for attribution. |
| 29 |
|
| 30 |
***************** |
| 31 |
Preview Changes |
| 32 |
***************** |
| 33 |
|
| 34 |
See what the changelog will look like: |
| 35 |
|
| 36 |
:: |
| 37 |
|
| 38 |
towncrier build --draft --version X.Y.Z |
| 39 |
|
| 40 |
***************** |
| 41 |
Build Changelog |
| 42 |
***************** |
| 43 |
|
| 44 |
Maintainers build the changelog during releases: |
| 45 |
|
| 46 |
:: |
| 47 |
|
| 48 |
towncrier build --yes --version X.Y.Z |
| 49 |
|
| 50 |
This collects all fragments, adds them to CHANGELOG.rst, and deletes the fragment files. |