Skip to content

Commit aa32035

Browse files
committed
Deploying to gh-pages from @ 1eb8fff 🚀
1 parent 5c07302 commit aa32035

File tree

3 files changed

+367
-98
lines changed

3 files changed

+367
-98
lines changed

commands/changelog/index.html

Lines changed: 44 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -545,10 +545,10 @@
545545
</li>
546546

547547
<li class="md-nav__item">
548-
<a href="#constrains" class="md-nav__link">
548+
<a href="#constraints" class="md-nav__link">
549549
<span class="md-ellipsis">
550550

551-
Constrains
551+
Constraints
552552

553553
</span>
554554
</a>
@@ -2102,10 +2102,10 @@
21022102
</li>
21032103

21042104
<li class="md-nav__item">
2105-
<a href="#constrains" class="md-nav__link">
2105+
<a href="#constraints" class="md-nav__link">
21062106
<span class="md-ellipsis">
21072107

2108-
Constrains
2108+
Constraints
21092109

21102110
</span>
21112111
</a>
@@ -2248,7 +2248,7 @@
22482248
<h1>changelog</h1>
22492249

22502250
<h2 id="about">About<a class="headerlink" href="#about" title="Permanent link">&para;</a></h2>
2251-
<p>This command will generate a changelog following the committing rules established.</p>
2251+
<p>Generates a changelog following the committing rules established.</p>
22522252
<div class="admonition tip">
22532253
<p class="admonition-title">Tip</p>
22542254
<p>To create the changelog automatically on bump, add the setting <a href="../../config/bump/#update_changelog_on_bump">update_changelog_on_bump</a></p>
@@ -2262,7 +2262,7 @@ <h2 id="examples">Examples<a class="headerlink" href="#examples" title="Permanen
22622262
<div class="highlight"><pre><span></span><code><span class="c1"># Generate full changelog</span>
22632263
cz<span class="w"> </span>changelog
22642264

2265-
<span class="c1"># or use the alias</span>
2265+
<span class="c1"># Or use the alias</span>
22662266
cz<span class="w"> </span>ch
22672267

22682268
<span class="c1"># Get the changelog for the given version</span>
@@ -2271,7 +2271,7 @@ <h2 id="examples">Examples<a class="headerlink" href="#examples" title="Permanen
22712271
<span class="c1"># Get the changelog for the given version range</span>
22722272
cz<span class="w"> </span>changelog<span class="w"> </span><span class="m">0</span>.3.0..0.4.0<span class="w"> </span>--dry-run
22732273
</code></pre></div>
2274-
<h2 id="constrains">Constrains<a class="headerlink" href="#constrains" title="Permanent link">&para;</a></h2>
2274+
<h2 id="constraints">Constraints<a class="headerlink" href="#constraints" title="Permanent link">&para;</a></h2>
22752275
<p>Changelog generation is constrained only to <strong>markdown</strong> files.</p>
22762276
<h2 id="description">Description<a class="headerlink" href="#description" title="Permanent link">&para;</a></h2>
22772277
<p>These are the variables used by the changelog generator.</p>
@@ -2281,11 +2281,10 @@ <h2 id="description">Description<a class="headerlink" href="#description" title=
22812281

22822282
<span class="k">-</span><span class="w"> </span><span class="gs">**&lt;scope&gt;**</span>: &lt;message&gt;
22832283
</code></pre></div>
2284-
<p>It will create a full block like above per version found in the tags.
2285-
And it will create a list of the commits found.
2286-
The <code>change_type</code> and the <code>scope</code> are optional, they don't need to be provided,
2287-
but if your regex does, they will be rendered.</p>
2288-
<p>The format followed by the changelog is the one from <a href="https://keepachangelog.com/">keep a changelog</a>
2284+
<p>Creates a full block like above per version found in the tags, and a list of the commits found.
2285+
The <code>change_type</code> and <code>scope</code> are optional and don't need to be provided,
2286+
but if your regex parses them, they will be rendered.</p>
2287+
<p>The format followed by the changelog is from <a href="https://keepachangelog.com/">keep a changelog</a>
22892288
and the following variables are expected:</p>
22902289
<table>
22912290
<thead>
@@ -2303,7 +2302,7 @@ <h2 id="description">Description<a class="headerlink" href="#description" title=
23032302
</tr>
23042303
<tr>
23052304
<td><code>date</code></td>
2306-
<td>Date in which the tag was created</td>
2305+
<td>Date when the tag was created</td>
23072306
<td><code>tags</code></td>
23082307
</tr>
23092308
<tr>
@@ -2312,7 +2311,7 @@ <h2 id="description">Description<a class="headerlink" href="#description" title=
23122311
<td><code>commit regex</code></td>
23132312
</tr>
23142313
<tr>
2315-
<td><code>message</code>*</td>
2314+
<td><code>message</code></td>
23162315
<td>Information extracted from the commit message</td>
23172316
<td><code>commit regex</code></td>
23182317
</tr>
@@ -2323,80 +2322,80 @@ <h2 id="description">Description<a class="headerlink" href="#description" title=
23232322
</tr>
23242323
<tr>
23252324
<td><code>breaking</code></td>
2326-
<td>Whether is a breaking change or not</td>
2325+
<td>Whether it is a breaking change or not</td>
23272326
<td><code>commit regex</code></td>
23282327
</tr>
23292328
</tbody>
23302329
</table>
2331-
<ul>
2332-
<li><strong>required</strong>: is the only one required to be parsed by the regex</li>
2333-
</ul>
2330+
<div class="admonition note">
2331+
<p class="admonition-title">Note</p>
2332+
<p><code>message</code> is the only variable required to be parsed by the regex.</p>
2333+
</div>
23342334
<h2 id="command-line-options">Command line options<a class="headerlink" href="#command-line-options" title="Permanent link">&para;</a></h2>
23352335
<h3 id="-extras"><code>--extras</code><a class="headerlink" href="#-extras" title="Permanent link">&para;</a></h3>
2336-
<p>Provides your own changelog extra variables by using the <code>extras</code> settings or the <code>--extra/-e</code> parameter.</p>
2336+
<p>Provide your own changelog extra variables by using the <code>extras</code> settings or the <code>--extra/-e</code> parameter.</p>
23372337
<div class="highlight"><pre><span></span><code>cz<span class="w"> </span>changelog<span class="w"> </span>--extra<span class="w"> </span><span class="nv">key</span><span class="o">=</span>value<span class="w"> </span>-e<span class="w"> </span><span class="nv">short</span><span class="o">=</span><span class="s2">&quot;quoted value&quot;</span>
23382338
</code></pre></div>
23392339
<h3 id="-file-name"><code>--file-name</code><a class="headerlink" href="#-file-name" title="Permanent link">&para;</a></h3>
2340-
<p>This value can be updated in the configuration file with the key <code>changelog_file</code> under <code>tools.commitizen</code></p>
2341-
<p>Specify the name of the output file, remember that changelog only works with Markdown.</p>
2340+
<p>This value can be updated in the configuration file with the key <code>changelog_file</code> under <code>tool.commitizen</code>.</p>
2341+
<p>Specify the name of the output file. Note that changelog generation only works with Markdown files.</p>
23422342
<div class="highlight"><pre><span></span><code>cz<span class="w"> </span>changelog<span class="w"> </span>--file-name<span class="o">=</span><span class="s2">&quot;CHANGES.md&quot;</span>
23432343
</code></pre></div>
23442344
<h3 id="-incremental"><code>--incremental</code><a class="headerlink" href="#-incremental" title="Permanent link">&para;</a></h3>
2345-
<p>This flag can be set in the configuration file with the key <code>changelog_incremental</code> under <code>tools.commitizen</code></p>
2345+
<p>This flag can be set in the configuration file with the key <code>changelog_incremental</code> under <code>tool.commitizen</code></p>
23462346
<p>Benefits:</p>
23472347
<ul>
2348-
<li>Build from the latest version found in changelog, this is useful if you have a different changelog and want to use commitizen</li>
2348+
<li>Build from the latest version found in changelog. This is useful if you have an existing changelog and want to use commitizen to extend it.</li>
23492349
<li>Update unreleased area</li>
2350-
<li>Allows users to manually touch the changelog without being rewritten.</li>
2350+
<li>Allows users to manually edit the changelog without it being completely rewritten.</li>
23512351
</ul>
23522352
<div class="highlight"><pre><span></span><code>cz<span class="w"> </span>changelog<span class="w"> </span>--incremental
23532353
</code></pre></div>
2354-
<div class="highlight"><pre><span></span><code><span class="k">[tools.commitizen]</span>
2354+
<div class="highlight"><pre><span></span><code><span class="k">[tool.commitizen]</span>
23552355
<span class="c1"># ...</span>
23562356
<span class="n">changelog_incremental</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="kc">true</span>
23572357
</code></pre></div>
23582358
<h3 id="-start-rev"><code>--start-rev</code><a class="headerlink" href="#-start-rev" title="Permanent link">&para;</a></h3>
2359-
<p>This value can be set in the configuration file with the key <code>changelog_start_rev</code> under <code>tools.commitizen</code></p>
2359+
<p>This value can be set in the configuration file with the key <code>changelog_start_rev</code> under <code>tool.commitizen</code></p>
23602360
<p>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.</p>
23612361
<div class="highlight"><pre><span></span><code>cz<span class="w"> </span>changelog<span class="w"> </span>--start-rev<span class="o">=</span><span class="s2">&quot;v0.2.0&quot;</span>
23622362
</code></pre></div>
2363-
<div class="highlight"><pre><span></span><code><span class="k">[tools.commitizen]</span>
2363+
<div class="highlight"><pre><span></span><code><span class="k">[tool.commitizen]</span>
23642364
<span class="c1"># ...</span>
23652365
<span class="n">changelog_start_rev</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s2">&quot;v0.2.0&quot;</span>
23662366
</code></pre></div>
23672367
<h3 id="-merge-prerelease"><code>--merge-prerelease</code><a class="headerlink" href="#-merge-prerelease" title="Permanent link">&para;</a></h3>
2368-
<p>This flag can be set in the configuration file with the key <code>changelog_merge_prerelease</code> under <code>tools.commitizen</code></p>
2369-
<p>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.</p>
2368+
<p>This flag can be set in the configuration file with the key <code>changelog_merge_prerelease</code> under <code>tool.commitizen</code></p>
2369+
<p>Collects changes from prereleases into the next non-prerelease version. If you have a prerelease version followed by a normal release, the changelog will show the prerelease changes as part of the normal release. If not set, prereleases will be included as separate entries in the changelog.</p>
23702370
<div class="highlight"><pre><span></span><code>cz<span class="w"> </span>changelog<span class="w"> </span>--merge-prerelease
23712371
</code></pre></div>
2372-
<div class="highlight"><pre><span></span><code><span class="k">[tools.commitizen]</span>
2372+
<div class="highlight"><pre><span></span><code><span class="k">[tool.commitizen]</span>
23732373
<span class="c1"># ...</span>
23742374
<span class="n">changelog_merge_prerelease</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="kc">true</span>
23752375
</code></pre></div>
23762376
<h3 id="-template"><code>--template</code><a class="headerlink" href="#-template" title="Permanent link">&para;</a></h3>
2377-
<p>Provides your own changelog jinja template by using the <code>template</code> settings or the <code>--template</code> parameter.</p>
2377+
<p>Provide your own changelog Jinja template by using the <code>template</code> settings or the <code>--template</code> parameter.</p>
2378+
<div class="highlight"><pre><span></span><code>cz<span class="w"> </span>changelog<span class="w"> </span>--template<span class="o">=</span><span class="s2">&quot;path/to/template.j2&quot;</span>
2379+
</code></pre></div>
23782380
<h3 id="-unreleased-version"><code>--unreleased-version</code><a class="headerlink" href="#-unreleased-version" title="Permanent link">&para;</a></h3>
2379-
<p>There is usually a chicken and egg situation when automatically
2380-
bumping the version and creating the changelog.
2381-
If you bump the version first, you have no changelog, you have to
2382-
create it later, and it won't be included in
2383-
the release of the created version.</p>
2384-
<p>If you create the changelog before bumping the version, then you
2385-
usually don't have the latest tag, and the <em>Unreleased</em> title appears.</p>
2386-
<p>By introducing <code>--unreleased-version</code> you can prevent this situation.</p>
2381+
<p>There is usually a chicken-and-egg situation when automatically bumping the version and creating the changelog:</p>
2382+
<ul>
2383+
<li>If you bump the version first, you have no changelog yet, and it won't be included in the release of the created version.</li>
2384+
<li>If you create the changelog before bumping the version, you usually don't have the latest tag, and the <em>Unreleased</em> title appears.</li>
2385+
</ul>
2386+
<p>By using <code>--unreleased-version</code>, you can prevent this situation.</p>
23872387
<p>Before bumping you can run:</p>
23882388
<div class="highlight"><pre><span></span><code>cz<span class="w"> </span>changelog<span class="w"> </span>--unreleased-version<span class="o">=</span><span class="s2">&quot;v1.0.0&quot;</span>
23892389
</code></pre></div>
2390-
<p>Remember to use the tag instead of the raw version number</p>
2391-
<p>For example if the format of your tag includes a <code>v</code> (<code>v1.0.0</code>), then you should use that,
2392-
if your tag is the same as the raw version, then ignore this.</p>
2393-
<p>Alternatively you can directly bump the version and create the changelog by doing</p>
2390+
<p>Remember to use the tag format instead of the raw version number.</p>
2391+
<p>For example, if your tag format includes a <code>v</code> prefix (e.g., <code>v1.0.0</code>), use that format. If your tag is the same as the raw version (e.g., <code>1.0.0</code>), use the raw version.</p>
2392+
<p>Alternatively, you can directly bump the version and create the changelog by running:</p>
23942393
<div class="highlight"><pre><span></span><code>cz<span class="w"> </span>bump<span class="w"> </span>--changelog
23952394
</code></pre></div>
23962395
<h2 id="hooks">Hooks<a class="headerlink" href="#hooks" title="Permanent link">&para;</a></h2>
23972396
<p>Supported hook methods:</p>
23982397
<ul>
2399-
<li>Per parsed message: Useful to add links</li>
2398+
<li>Per parsed message: Useful to add links to commits or issues</li>
24002399
<li>End of changelog generation: Useful to send Slack or chat messages, or notify another department</li>
24012400
</ul>
24022401
<p>Read more about hooks in the <a href="../../customization/config_file/">customization page</a></p>
@@ -2420,7 +2419,7 @@ <h2 id="hooks">Hooks<a class="headerlink" href="#hooks" title="Permanent link">&
24202419
<span class="md-icon" title="Last update">
24212420
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
24222421
</span>
2423-
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date" title="November 19, 2025 09:12:08 UTC">November 19, 2025</span>
2422+
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date" title="January 31, 2026 04:05:41 UTC">January 31, 2026</span>
24242423
</span>
24252424

24262425

search/search_index.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)