Skip to content

Commit

Permalink
Merge #18
Browse files Browse the repository at this point in the history
18: chore(ci): omit CI scoped tasks, clean up rendering of changelog r=AaronFriel a=AaronFriel

bors r+

Co-authored-by: Aaron Friel <[email protected]>
  • Loading branch information
bors[bot] and AaronFriel authored Jul 25, 2022
2 parents c284552 + ec899a1 commit 9b9fafc
Showing 1 changed file with 13 additions and 18 deletions.
31 changes: 13 additions & 18 deletions cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,20 @@ body = """
{% else %}\
## [unreleased]
{% endif %}\
{% if previous %}\
{% if previous.commit_id %}
[{{ previous.commit_id | truncate(length=7, end="") }}]({{ previous.commit_id }})...\
[{{ commit_id | truncate(length=7, end="") }}]({{ commit_id }})
{% endif %}\
{% endif %}\
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | upper_first }}
{% for commit in commits
| filter(attribute="scope")
| sort(attribute="scope") %}
- *({{commit.scope}})* {{ commit.message | upper_first }}
{%- if commit.breaking %}
{% raw %} {% endraw %}- **BREAKING**: {{commit.breaking_description}}
{%- endif -%}
{%- endfor -%}
{%- for commit in commits %}
{%- if commit.scope -%}
{% else -%}
- {{ commit.message | upper_first }}
{% if commit.breaking -%}
{% raw %} {% endraw %}- **BREAKING**: {{commit.breaking_description}}
{% endif -%}
{% endif -%}
{% endfor -%}
{% raw %}\n{% endraw %}\
{% for commit in commits %}
- {% if commit.scope %}[{{ commit.scope }}] {% endif %}{{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}]({{ commit.id }}))\
{% for footer in commit.footers -%}
, {{ footer.token }}{{ footer.separator }}{{ footer.value }}\
{% endfor %}\
{% endfor %}
{% endfor %}\n
"""
# remove the leading and trailing whitespace from the template
Expand All @@ -52,6 +46,7 @@ commit_preprocessors = [
]
# regex for parsing and grouping commits
commit_parsers = [
{ message = "^\\w+\\(ci\\)", skip = true},
{ message = "^feat", group = "Features"},
{ message = "^fix", group = "Bug Fixes"},
{ message = "^doc", group = "Documentation"},
Expand Down

0 comments on commit 9b9fafc

Please sign in to comment.