Skip to content

Commit beb457c

Browse files
committed
Add new 'improvement' changelog category
This creates a separate section from 'features' for small changes which don't usually require user intervention, such as: * Human readable session duration * New junitxml fields * Improved colors in terminal * etc. The idea is to better match user expectations about new actual features in the "Features" section of the changelog.
1 parent ec76f70 commit beb457c

File tree

5 files changed

+8
-2
lines changed

5 files changed

+8
-2
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Here is a quick checklist that should be present in PRs.
66
-->
77

88
- [ ] Target the `master` branch for bug fixes, documentation updates and trivial changes.
9-
- [ ] Target the `features` branch for new features and removals/deprecations.
9+
- [ ] Target the `features` branch for new features, improvements, and removals/deprecations.
1010
- [ ] Include documentation when adding new features.
1111
- [ ] Include new tests or update existing tests when applicable.
1212

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ repos:
5959
name: changelog filenames
6060
language: fail
6161
entry: 'changelog files must be named ####.(feature|bugfix|doc|deprecation|removal|vendor|trivial).rst'
62-
exclude: changelog/(\d+\.(feature|bugfix|doc|deprecation|removal|vendor|trivial).rst|README.rst|_template.rst)
62+
exclude: changelog/(\d+\.(feature|improvement|bugfix|doc|deprecation|removal|vendor|trivial).rst|README.rst|_template.rst)
6363
files: ^changelog/
6464
- id: py-deprecated
6565
name: py library is deprecated
File renamed without changes.

changelog/README.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Each file should be named like ``<ISSUE>.<TYPE>.rst``, where
1212
``<ISSUE>`` is an issue number, and ``<TYPE>`` is one of:
1313

1414
* ``feature``: new user facing features, like new command-line options and new behavior.
15+
* ``improvement``: improvement of existing functionality, usually without requiring user intervention (for example, new fields being written in ``--junitxml``, improved colors in terminal, etc).
1516
* ``bugfix``: fixes a reported bug.
1617
* ``doc``: documentation improvement, like rewording an entire session or adding missing docs.
1718
* ``deprecation``: feature deprecation.

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ template = "changelog/_template.rst"
3030
name = "Features"
3131
showcontent = true
3232

33+
[[tool.towncrier.type]]
34+
directory = "improvement"
35+
name = "Improvements"
36+
showcontent = true
37+
3338
[[tool.towncrier.type]]
3439
directory = "bugfix"
3540
name = "Bug Fixes"

0 commit comments

Comments
 (0)