Skip to content

Commit

Permalink
chore: Allow the usage of the breaking-change trailer for changelog e…
Browse files Browse the repository at this point in the history
…ntries (#195)
  • Loading branch information
poljar authored Oct 17, 2024
1 parent c2efa95 commit fe22e4e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ olm, cipher).
In addition to the Conventional Commit format, you can use the `Changelog` git
trailer to specify the changelog message explicitly. When that trailer is
present, its value will be used as the changelog entry instead of the commit's
leading line.
leading line. For breaking changes, use the `Breaking-Change` trailer instead
of the `Changelog` trailer to specify the changelog entry.


#### Example Commit Message
Expand Down
2 changes: 2 additions & 0 deletions cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ body = """
{% for footer in commit.footers -%}
{% if footer.token | lower == "changelog" -%}
{% set_global commit_message = footer.value -%}
{% elif footer.token | lower == "breaking-change" -%}
{% set_global commit_message = footer.value -%}
{% elif footer.token | lower == "security-impact" -%}
{% set_global security_impact = footer.value -%}
{% elif footer.token | lower == "cve" -%}
Expand Down

0 comments on commit fe22e4e

Please sign in to comment.