@@ -107,29 +107,49 @@ pre-commit run --all-files
107
107
The changelog format is based on [ Keep a Changelog] [ ref-keep-a-changelog ] , and
108
108
this project adheres to [ Semantic Versioning] [ ref-semantic-versioning ] .
109
109
110
- Please add a changelog entry for every PR you contribute. The versions are
111
- seperated into ` MAJOR.MINOR.PATCH ` :
112
-
113
- - Increment the major version by 1 in case you created a breaking, non
114
- backwards compatible change which requires the user to perform additional
115
- tasks, adopt his currently running code or in general can't be used as is anymore.
116
- - Increment the minor version by 1 on new "features" which can be used or are
117
- optional, but in either case do not require any changes by the user to keep
118
- the system running after upgrading.
119
- - Increment the patch version by 1 on bugfixes which fix an issue but can be
120
- used out of the box, like features, without any changes by the user. In some
121
- cases bugfixes can be breaking changes of course.
122
-
123
- Please add the date the change has been made as well to the changelog
124
- following the format ` ## [MAJOR.MINOR.PATCH] - YYYY-MM-DD ` . It is not
125
- necessary to keep this date up to date, it is just used as meta data.
110
+ ### General
111
+
112
+ Please add a changelog snippet for every PR you contribute. The changes are
113
+ categorised into:
114
+
115
+ - ` Bugfixes ` fix an issue which can be used out of the box without any further
116
+ changes required by the user. Be aware that in some cases bugfixes can be
117
+ breaking changes.
118
+ - ` features ` is used to indicate a backwards compatible change providing
119
+ improved or extended functionalitiy. This does, as ` bugfixes ` , in any case
120
+ not require any changes by the user to keep the system running after upgrading.
121
+ - ` breaking ` creates a breaking, non backwards compatible change which
122
+ requires the user to perform additional tasks, adopt his currently running
123
+ code or in general can't be used as is anymore.
126
124
127
125
The changelog entry shall be short but meaningful and can of course contain
128
126
links and references to other issues or PRs. New lines are only allowed for a
129
127
new bulletpoint entry. Usage examples or other code snippets should be placed
130
128
in the code documentation, README or the docs folder.
131
129
132
- ### General
130
+ ### Creation
131
+
132
+ To create a new changelog snippet use the CLI tool with its simple interface.
133
+ Use the issue number, in this example ` 22.md ` , as the snippet name. The
134
+ extension shall always be ` .md ` .
135
+
136
+ ``` bash
137
+ changelog-generator create .snippets/22.md
138
+ ```
139
+
140
+ The tool will create a basic snippet which can and should be extended with a
141
+ detailed description of the change after the file creation.
142
+
143
+ ### Generation
144
+
145
+ Commit the changes and the snippet file and run the following command to create
146
+ a changelog with the latest snippet included
147
+
148
+ ``` bash
149
+ changelog-generator changelog changelog.md --snippets=.snippets
150
+ ```
151
+
152
+ ### Version file
133
153
134
154
The package version file, located at ` <PACKAGE_NAME>/version.py ` contains the
135
155
latest changelog version.
0 commit comments