Skip to content

Commit

Permalink
style(changelog): comply with MD022 and fix minor typos (#61)
Browse files Browse the repository at this point in the history
* style: add newlines after the title to comply with MD022

Signed-off-by: Kenji Miyake <[email protected]>

* style: replace whitespaces with whitespace

Signed-off-by: Kenji Miyake <[email protected]>
  • Loading branch information
kenji-miyake authored Feb 8, 2022
1 parent e1da611 commit 0293b28
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/fixtures/cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[changelog]
# changelog header
header = """
# Changelog
# Changelog\n
All notable changes to this project will be documented in this file.\n
"""
# template for the changelog body
Expand All @@ -21,7 +21,7 @@ body = """
{% endfor %}
{% endfor %}\n
"""
# remove the leading and trailing whitespaces from the template
# remove the leading and trailing whitespace from the template
trim = true
# changelog footer
footer = """
Expand Down
1 change: 1 addition & 0 deletions .github/fixtures/expected.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Changelog

All notable changes to this project will be documented in this file.

## [0.2.0] - 2021-01-23
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Changelog

All notable changes to this project will be documented in this file.

## [0.5.0] - 2021-12-15
Expand Down
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ See [templating](#templating) for more detail.

#### trim

If set to `true`, leading and trailing whitespaces are removed from the [body](#body).
If set to `true`, leading and trailing whitespace are removed from the [body](#body).

It is useful for adding indentation to the template for readability, as shown [in the example](#changelog).

Expand Down Expand Up @@ -665,6 +665,7 @@ If you have a custom configuration file that you are using for your project(s),

```
# Changelog
All notable changes to this project will be documented in this file.
## [unreleased]
Expand Down Expand Up @@ -708,6 +709,7 @@ All notable changes to this project will be documented in this file.
<summary>Rendered Output</summary>

# Changelog

All notable changes to this project will be documented in this file.

## [unreleased]
Expand Down Expand Up @@ -813,6 +815,7 @@ All notable changes to this project will be documented in this file.

```
# Changelog
All notable changes to this project will be documented in this file.
## [unreleased]
Expand Down Expand Up @@ -858,6 +861,7 @@ All notable changes to this project will be documented in this file.
<summary>Rendered Output</summary>

# Changelog

All notable changes to this project will be documented in this file.

## [unreleased]
Expand Down Expand Up @@ -905,6 +909,7 @@ All notable changes to this project will be documented in this file.

```
# Changelog
All notable changes to this project will be documented in this file.
## [unreleased]
Expand Down Expand Up @@ -966,6 +971,7 @@ All notable changes to this project will be documented in this file.
<summary>Rendered Output</summary>

# Changelog

All notable changes to this project will be documented in this file.

## [unreleased]
Expand Down Expand Up @@ -1029,6 +1035,7 @@ All notable changes to this project will be documented in this file.

```
# Changelog
All notable changes to this project will be documented in this file.
## [unreleased]
Expand Down Expand Up @@ -1073,6 +1080,7 @@ All notable changes to this project will be documented in this file.
<summary>Rendered Output</summary>

# Changelog

All notable changes to this project will be documented in this file.

## [unreleased]
Expand Down Expand Up @@ -1119,6 +1127,7 @@ All notable changes to this project will be documented in this file.

```
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
Expand Down Expand Up @@ -1165,6 +1174,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
<summary>Rendered Output</summary>

# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
Expand Down Expand Up @@ -1213,6 +1223,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

```
# Changelog
All notable changes to this project will be documented in this file.
## [unreleased]
Expand Down Expand Up @@ -1260,6 +1271,7 @@ All notable changes to this project will be documented in this file.
<summary>Rendered Output</summary>

# Changelog

All notable changes to this project will be documented in this file.

## [unreleased]
Expand Down
4 changes: 2 additions & 2 deletions config/cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[changelog]
# changelog header
header = """
# Changelog
# Changelog\n
All notable changes to this project will be documented in this file.\n
"""
# template for the changelog body
Expand All @@ -21,7 +21,7 @@ body = """
{% endfor %}
{% endfor %}\n
"""
# remove the leading and trailing whitespaces from the template
# remove the leading and trailing whitespace from the template
trim = true
# changelog footer
footer = """
Expand Down
4 changes: 2 additions & 2 deletions examples/detailed.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[changelog]
# changelog header
header = """
# Changelog
# Changelog\n
All notable changes to this project will be documented in this file.\n
"""
# template for the changelog body
Expand All @@ -27,7 +27,7 @@ body = """
{% endfor %}
{% endfor %}\n
"""
# remove the leading and trailing whitespaces from the template
# remove the leading and trailing whitespace from the template
trim = true
# changelog footer
footer = """
Expand Down
4 changes: 2 additions & 2 deletions examples/keepachangelog.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[changelog]
# changelog header
header = """
# Changelog
# Changelog\n
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
Expand All @@ -24,7 +24,7 @@ body = """
{% endfor %}
{% endfor %}\n
"""
# remove the leading and trailing whitespaces from the template
# remove the leading and trailing whitespace from the template
trim = true
# changelog footer
footer = """
Expand Down
4 changes: 2 additions & 2 deletions examples/scoped.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[changelog]
# changelog header
header = """
# Changelog
# Changelog\n
All notable changes to this project will be documented in this file.\n
"""
# template for the changelog body
Expand All @@ -24,7 +24,7 @@ body = """
{% endfor %}\
{% endfor %}\n
"""
# remove the leading and trailing whitespaces from the template
# remove the leading and trailing whitespace from the template
trim = true
# changelog footer
footer = """
Expand Down
4 changes: 2 additions & 2 deletions examples/scopesorted.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[changelog]
# changelog header
header = """
# Changelog
# Changelog\n
All notable changes to this project will be documented in this file.\n
"""
# template for the changelog body
Expand Down Expand Up @@ -36,7 +36,7 @@ body = """
{% raw %}\n{% endraw %}\
{% endfor %}\n
"""
# remove the leading and trailing whitespaces from the template
# remove the leading and trailing whitespace from the template
trim = true
# changelog footer
footer = """
Expand Down
4 changes: 2 additions & 2 deletions examples/unconventional.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[changelog]
# changelog header
header = """
# Changelog
# Changelog\n
All notable changes to this project will be documented in this file.\n
"""
# template for the changelog body
Expand All @@ -21,7 +21,7 @@ body = """
{% endfor %}
{% endfor %}\n
"""
# remove the leading and trailing whitespaces from the template
# remove the leading and trailing whitespace from the template
trim = true
# changelog footer
footer = """
Expand Down

0 comments on commit 0293b28

Please sign in to comment.