Skip to content

Commit

Permalink
refactor(config)!: rename option changelog.trim into `changelog.tri…
Browse files Browse the repository at this point in the history
…m_body_whitespace`

Renamed option `changelog.trim` into `changelog.trim_body_whitespace` for clarity.
Updated description and documentation for option `changelog.trim_body_whitespace`.
  • Loading branch information
Cyclonit committed Mar 16, 2024
1 parent d3f1a98 commit 44f1335
Show file tree
Hide file tree
Showing 43 changed files with 86 additions and 86 deletions.
4 changes: 2 additions & 2 deletions .github/fixtures/new-fixture-template/cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ body_template = """
footer_template = """
<!-- generated by git-cliff -->
"""
# remove the leading and trailing whitespace from the templates
trim = true
# Whether to remove leading and trailing whitespaces from all lines of the changelog's body.
trim_body_whitespace = true

[release]

Expand Down
4 changes: 2 additions & 2 deletions .github/fixtures/test-bump-version-keep-zerover/cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ body_template = """
footer_template = """
<!-- generated by git-cliff -->
"""
# remove the leading and trailing whitespace from the templates
trim = true
# Whether to remove leading and trailing whitespaces from all lines of the changelog's body.
trim_body_whitespace = true

[bump]
features_always_bump_minor = false
Expand Down
4 changes: 2 additions & 2 deletions .github/fixtures/test-bump-version/cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ body_template = """
footer_template = """
<!-- generated by git-cliff -->
"""
# remove the leading and trailing whitespace from the templates
trim = true
# Whether to remove leading and trailing whitespaces from all lines of the changelog's body.
trim_body_whitespace = true
4 changes: 2 additions & 2 deletions .github/fixtures/test-bumped-version/cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ body_template = """
footer_template = """
<!-- generated by git-cliff -->
"""
# remove the leading and trailing whitespace from the templates
trim = true
# Whether to remove leading and trailing whitespaces from all lines of the changelog's body.
trim_body_whitespace = true
4 changes: 2 additions & 2 deletions .github/fixtures/test-commit-footers/cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ body_template = """
footer_template = """
<!-- generated by git-cliff -->
"""
# remove the leading and trailing whitespace from the templates
trim = true
# Whether to remove leading and trailing whitespaces from all lines of the changelog's body.
trim_body_whitespace = true
4 changes: 2 additions & 2 deletions .github/fixtures/test-commit-preprocessors/cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ body_template = """
footer_template = """
<!-- generated by git-cliff -->
"""
# remove the leading and trailing whitespace from the templates
trim = true
# Whether to remove leading and trailing whitespaces from all lines of the changelog's body.
trim_body_whitespace = true

[release]

Expand Down
4 changes: 2 additions & 2 deletions .github/fixtures/test-custom-scope/cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ body_template = """
footer_template = """
<!-- generated by git-cliff -->
"""
# remove the leading and trailing whitespace from the templates
trim = true
# Whether to remove leading and trailing whitespaces from all lines of the changelog's body.
trim_body_whitespace = true

[commit]
# A list of parsers using regex for extracting data from the commit message.
Expand Down
4 changes: 2 additions & 2 deletions .github/fixtures/test-custom-tag-pattern/cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ body_template = """
footer_template = """
<!-- generated by git-cliff -->
"""
# remove the leading and trailing whitespace from the templates
trim = true
# Whether to remove leading and trailing whitespaces from all lines of the changelog's body.
trim_body_whitespace = true

[release]

Expand Down
4 changes: 2 additions & 2 deletions .github/fixtures/test-date-order/cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ body_template = """
footer_template = """
<!-- generated by git-cliff -->
"""
# remove the leading and trailing whitespace from the templates
trim = true
# Whether to remove leading and trailing whitespaces from all lines of the changelog's body.
trim_body_whitespace = true
4 changes: 2 additions & 2 deletions .github/fixtures/test-footer-template/cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ footer_template = """
{% endif %}\
{% endfor %}\
"""
# remove the leading and trailing whitespace from the templates
trim = true
# Whether to remove leading and trailing whitespaces from all lines of the changelog's body.
trim_body_whitespace = true
4 changes: 2 additions & 2 deletions .github/fixtures/test-github-integration/cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ body_template = """
{% raw %}\n{% endraw %}
{% endif %}
"""
# remove the leading and trailing whitespace from the template
trim = true
# Whether to remove leading and trailing whitespaces from all lines of the changelog's body.
trim_body_whitespace = true
# A Tera template to be rendered as the changelog's footer (see https://keats.github.io/tera/docs/#introduction).
footer_template = """
<!-- generated by git-cliff -->
Expand Down
4 changes: 2 additions & 2 deletions .github/fixtures/test-ignore-tags/cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ body_template = """
footer_template = """
<!-- generated by git-cliff -->
"""
# remove the leading and trailing whitespace from the templates
trim = true
# Whether to remove leading and trailing whitespaces from all lines of the changelog's body.
trim_body_whitespace = true

[release]
# Regex to select git tags that do not represent proper releases. Takes precedence over `release.tags_pattern`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ body_template = """
{% endfor %}
{% endfor %}\n
"""
# remove the leading and trailing whitespace from the template
trim = true
# Whether to remove leading and trailing whitespaces from all lines of the changelog's body.
trim_body_whitespace = true
# A Tera template to be rendered as the changelog's footer (see https://keats.github.io/tera/docs/#introduction).
footer_template = """
<!-- generated by git-cliff -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ body_template = """
{% endfor %}
{% endfor %}\n
"""
# remove the leading and trailing whitespace from the template
trim = true
# Whether to remove leading and trailing whitespaces from all lines of the changelog's body.
trim_body_whitespace = true
# A Tera template to be rendered as the changelog's footer (see https://keats.github.io/tera/docs/#introduction).
footer_template = """
<!-- generated by git-cliff -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ body_template = """
{% endfor %}
{% endfor %}\n
"""
# remove the leading and trailing whitespace from the template
trim = true
# Whether to remove leading and trailing whitespaces from all lines of the changelog's body.
trim_body_whitespace = true
# A Tera template to be rendered as the changelog's footer (see https://keats.github.io/tera/docs/#introduction).
footer_template = """
<!-- generated by git-cliff -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ body_template = """
{% endfor %}
{% endfor %}\n
"""
# remove the leading and trailing whitespace from the template
trim = true
# Whether to remove leading and trailing whitespaces from all lines of the changelog's body.
trim_body_whitespace = true
# A Tera template to be rendered as the changelog's footer (see https://keats.github.io/tera/docs/#introduction).
footer_template = """
<!-- generated by git-cliff -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ body_template = """
{% endfor %}
{% endfor %}\n
"""
# remove the leading and trailing whitespace from the template
trim = true
# Whether to remove leading and trailing whitespaces from all lines of the changelog's body.
trim_body_whitespace = true
# A Tera template to be rendered as the changelog's footer (see https://keats.github.io/tera/docs/#introduction).
footer_template = """
<!-- generated by git-cliff -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ body_template = """
{% endfor %}
{% endfor %}\n
"""
# remove the leading and trailing whitespace from the template
trim = true
# Whether to remove leading and trailing whitespaces from all lines of the changelog's body.
trim_body_whitespace = true
# A Tera template to be rendered as the changelog's footer (see https://keats.github.io/tera/docs/#introduction).
footer_template = """
<!-- generated by git-cliff -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ body_template = """
{% endfor %}
{% endfor %}\n
"""
# remove the leading and trailing whitespace from the template
trim = true
# Whether to remove leading and trailing whitespaces from all lines of the changelog's body.
trim_body_whitespace = true
# A Tera template to be rendered as the changelog's footer (see https://keats.github.io/tera/docs/#introduction).
footer_template = """
<!-- generated by git-cliff -->
Expand Down
4 changes: 2 additions & 2 deletions .github/fixtures/test-keep-a-changelog-links/cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ body_template = """
footer_template = """
<!-- generated by git-cliff -->
"""
# remove the leading and trailing whitespace from the templates
trim = true
# Whether to remove leading and trailing whitespaces from all lines of the changelog's body.
trim_body_whitespace = true
# Whether to exclude changes that do not belong to any group from the changelog.
exclude_ungrouped_changes = true

Expand Down
4 changes: 2 additions & 2 deletions .github/fixtures/test-latest-with-one-tag/cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ body_template = """
footer_template = """
<!-- generated by git-cliff -->
"""
# remove the leading and trailing whitespace from the templates
trim = true
# Whether to remove leading and trailing whitespaces from all lines of the changelog's body.
trim_body_whitespace = true
4 changes: 2 additions & 2 deletions .github/fixtures/test-limit-commits/cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ body_template = """
footer_template = """
<!-- generated by git-cliff -->
"""
# remove the leading and trailing whitespace from the templates
trim = true
# Whether to remove leading and trailing whitespaces from all lines of the changelog's body.
trim_body_whitespace = true

[commit]
# Whether to limit the total number of commits to be included in the changelog.
Expand Down
4 changes: 2 additions & 2 deletions .github/fixtures/test-no-exec/cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ body_template = """
footer_template = """
<!-- generated by git-cliff -->
"""
# remove the leading and trailing whitespace from the templates
trim = true
# Whether to remove leading and trailing whitespaces from all lines of the changelog's body.
trim_body_whitespace = true
# A list of postprocessors using regex to modify the changelog.
postprocessors = [
{ pattern = '.*', replace_command = 'this_command_does_not_exist' },
Expand Down
4 changes: 2 additions & 2 deletions .github/fixtures/test-regex-replace-parser/cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ body_template = """
footer_template = """
<!-- generated by git-cliff -->
"""
# remove the leading and trailing whitespace from the templates
trim = true
# Whether to remove leading and trailing whitespaces from all lines of the changelog's body.
trim_body_whitespace = true

[commit]
# A list of parsers using regex for extracting data from the commit message.
Expand Down
4 changes: 2 additions & 2 deletions .github/fixtures/test-skip-breaking-changes/cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ body_template = """
footer_template = """
<!-- generated by git-cliff -->
"""
# remove the leading and trailing whitespace from the templates
trim = true
# Whether to remove leading and trailing whitespaces from all lines of the changelog's body.
trim_body_whitespace = true

[commit]
# A list of parsers using regex for extracting data from the commit message.
Expand Down
4 changes: 2 additions & 2 deletions .github/fixtures/test-skip-commits/cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ body_template = """
footer_template = """
<!-- generated by git-cliff -->
"""
# remove the leading and trailing whitespace from the templates
trim = true
# Whether to remove leading and trailing whitespaces from all lines of the changelog's body.
trim_body_whitespace = true

[commit]
# A list of parsers using regex for extracting data from the commit message.
Expand Down
4 changes: 2 additions & 2 deletions .github/fixtures/test-split-commits/cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ body_template = """
footer_template = """
<!-- generated by git-cliff -->
"""
# remove the leading and trailing whitespace from the templates
trim = true
# Whether to remove leading and trailing whitespaces from all lines of the changelog's body.
trim_body_whitespace = true

[commit]
# Whether to split commits on newlines, treating each line as an individual commit.
Expand Down
4 changes: 2 additions & 2 deletions .github/fixtures/test-topo-order-arg/cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ body_template = """
footer_template = """
<!-- generated by git-cliff -->
"""
# remove the leading and trailing whitespace from the templates
trim = true
# Whether to remove leading and trailing whitespaces from all lines of the changelog's body.
trim_body_whitespace = true
4 changes: 2 additions & 2 deletions .github/fixtures/test-topo-order/cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ body_template = """
footer_template = """
<!-- generated by git-cliff -->
"""
# remove the leading and trailing whitespace from the templates
trim = true
# Whether to remove leading and trailing whitespaces from all lines of the changelog's body.
trim_body_whitespace = true

[release]
# Whether to order releases chronologically or topologically.
Expand Down
4 changes: 2 additions & 2 deletions cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ body_template = """
footer_template = """
<!-- generated by git-cliff -->
"""
# remove the leading and trailing whitespace from the templates
trim = true
# Whether to remove leading and trailing whitespaces from all lines of the changelog's body.
trim_body_whitespace = true
# A list of postprocessors using regex to modify the changelog.
postprocessors = [
{ pattern = '<REPO>', replace = "https://github.com/orhun/git-cliff" }, # replace repository URL
Expand Down
4 changes: 2 additions & 2 deletions config/cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ body_template = """
footer_template = """
<!-- generated by git-cliff -->
"""
# remove the leading and trailing s
trim = true
# Whether to remove leading and trailing whitespaces from all lines of the changelog's body.
trim_body_whitespace = true
# A list of postprocessors using regex to modify the changelog.
postprocessors = [
# { pattern = '<REPO>', replace = "https://github.com/orhun/git-cliff" }, # replace repository URL
Expand Down
4 changes: 2 additions & 2 deletions examples/cocogitto.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ body_template = """
footer_template = """
<!-- generated by git-cliff -->
"""
# remove the leading and trailing whitespace from the templates
trim = true
# Whether to remove leading and trailing whitespaces from all lines of the changelog's body.
trim_body_whitespace = true
# A list of postprocessors using regex to modify the changelog.
postprocessors = [
{ pattern = '\$REPO', replace = "https://github.com/cocogitto/cocogitto" }, # replace repository URL
Expand Down
4 changes: 2 additions & 2 deletions examples/detailed.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ body_template = """
footer_template = """
<!-- generated by git-cliff -->
"""
# remove the leading and trailing whitespace from the templates
trim = true
# Whether to remove leading and trailing whitespaces from all lines of the changelog's body.
trim_body_whitespace = true
# Whether to exclude changes that do not belong to any group from the changelog.
exclude_ungrouped_changes = false

Expand Down
4 changes: 2 additions & 2 deletions examples/github-keepachangelog.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ footer_template = """
{% endfor %}
<!-- generated by git-cliff -->
"""
# remove the leading and trailing whitespace from the templates
trim = true
# Whether to remove leading and trailing whitespaces from all lines of the changelog's body.
trim_body_whitespace = true
# Whether to exclude changes that do not belong to any group from the changelog.
exclude_ungrouped_changes = true

Expand Down
4 changes: 2 additions & 2 deletions examples/github.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ body_template = """
https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}
{%- endmacro -%}
"""
# remove the leading and trailing whitespace from the template
trim = true
# Whether to remove leading and trailing whitespaces from all lines of the changelog's body.
trim_body_whitespace = true
# A Tera template to be rendered as the changelog's footer (see https://keats.github.io/tera/docs/#introduction).
footer_template = """
<!-- generated by git-cliff -->
Expand Down
4 changes: 2 additions & 2 deletions examples/keepachangelog.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ footer_template = """
{% endfor %}
<!-- generated by git-cliff -->
"""
# remove the leading and trailing whitespace from the templates
trim = true
# Whether to remove leading and trailing whitespaces from all lines of the changelog's body.
trim_body_whitespace = true
# Whether to exclude changes that do not belong to any group from the changelog.
exclude_ungrouped_changes = true

Expand Down
4 changes: 2 additions & 2 deletions examples/scoped.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ body_template = """
footer_template = """
<!-- generated by git-cliff -->
"""
# remove the leading and trailing whitespace from the templates
trim = true
# Whether to remove leading and trailing whitespaces from all lines of the changelog's body.
trim_body_whitespace = true
# Whether to exclude changes that do not belong to any group from the changelog.
exclude_ungrouped_changes = false

Expand Down
4 changes: 2 additions & 2 deletions examples/scopesorted.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ body_template = """
footer_template = """
<!-- generated by git-cliff -->
"""
# remove the leading and trailing whitespace from the templates
trim = true
# Whether to remove leading and trailing whitespaces from all lines of the changelog's body.
trim_body_whitespace = true
# Whether to exclude changes that do not belong to any group from the changelog.
exclude_ungrouped_changes = false

Expand Down

0 comments on commit 44f1335

Please sign in to comment.