You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remember to use the tag instead of the raw version number
98
-
99
-
For example if the format of your tag includes a `v` (`v1.0.0`), then you should use that,
100
-
if your tag is the same as the raw version, then ignore this.
101
-
102
-
Alternatively you can directly bump the version and create the changelog by doing
103
-
104
-
```bash
105
-
cz bump --changelog
106
-
```
78
+
See [the template customization section](../customization.md#customizing-the-changelog-template)
107
79
108
-
### `file-name`
80
+
### `--file-name`
109
81
110
-
This value can be updated in the `toml` file with the key `changelog_file` under `tools.commitizen`
82
+
This value can be updated in the configuration file with the key `changelog_file` under `tools.commitizen`
111
83
112
84
Specify the name of the output file, remember that changelog only works with Markdown.
113
85
114
86
```bash
115
87
cz changelog --file-name="CHANGES.md"
116
88
```
117
89
118
-
### `incremental`
90
+
### `--incremental`
119
91
120
-
This flag can be set in the `toml` file with the key `changelog_incremental` under `tools.commitizen`
92
+
This flag can be set in the configuration file with the key `changelog_incremental` under `tools.commitizen`
121
93
122
94
Benefits:
123
95
@@ -135,9 +107,9 @@ cz changelog --incremental
135
107
changelog_incremental = true
136
108
```
137
109
138
-
### `start-rev`
110
+
### `--start-rev`
139
111
140
-
This value can be set in the `toml` file with the key `changelog_start_rev` under `tools.commitizen`
112
+
This value can be set in the configuration file with the key `changelog_start_rev` under `tools.commitizen`
141
113
142
114
Start from a given git rev to generate the changelog. Commits before that rev will not be considered. This is especially useful for long-running projects adopting conventional commits, where old commit messages might fail to be parsed for changelog generation.
This flag can be set in the `toml` file with the key `changelog_merge_prerelease` under `tools.commitizen`
128
+
This flag can be set in the configuration file with the key `changelog_merge_prerelease` under `tools.commitizen`
157
129
158
130
Collects changes from prereleases into the next non-prerelease. This means that if you have a prerelease version, and then a normal release, the changelog will show the prerelease changes as part of the changes of the normal release. If not set, it will include prereleases in the changelog.
<!-- When adding a new option, please keep the alphabetical order. -->
4
+
<!-- If there is a new configuration option that doesn't have a corresponding command line option, please add it here. -->
4
5
5
-
## `changelog_file`
6
+
As for now, each of the options that is used by `cz changelog` command can correlate to a command line option.
6
7
7
-
- Type: `str`
8
-
- Default: `CHANGELOG.md`
9
-
10
-
Filename of exported changelog
11
-
12
-
## `changelog_format`
13
-
14
-
- Type: `str`
15
-
- Default: `None`
16
-
17
-
Format used to parse and generate the changelog. If not specified, resolved from [`changelog_file`](#changelog_file).
18
-
19
-
## `changelog_incremental`
20
-
21
-
- Type: `bool`
22
-
- Default: `False`
23
-
24
-
Update changelog with the missing versions. This is good if you don't want to replace previous versions in the file.
25
-
26
-
!!! note
27
-
When doing `cz bump --changelog`, this is automatically set to `True`.
28
-
29
-
## `changelog_merge_prerelease`
30
-
31
-
- Type: `bool`
32
-
- Default: `False`
33
-
34
-
Collect all changes of prerelease versions into the next non-prerelease version when creating the changelog.
35
-
36
-
## `changelog_start_rev`
37
-
38
-
- Type: `str`
39
-
- Default: `None`
40
-
41
-
Start from a given git rev to generate the changelog.
42
-
43
-
## `template`
44
-
45
-
- Type: `str`
46
-
- Default: `None` (provided by plugin)
47
-
48
-
Provide custom changelog jinja template path relative to the current working directory. See [template customization](../customization.md#customizing-the-changelog-template) for more details.
49
-
50
-
## `extras`
51
-
52
-
- Type: `dict[str, Any]`
53
-
- Default: `{}`
54
-
55
-
Provide extra variables to the changelog template. See [template customization](../customization.md#customizing-the-changelog-template) for more details.
8
+
See [changelog command line options](../commands/changelog.md#command-line-options) for more details.
0 commit comments