Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update
Browse files Browse the repository at this point in the history
db-lagrange committed Jan 28, 2025

Verified

This commit was signed with the committer’s verified signature.
savacano28 Stephanya Casanova
1 parent 4ebf43f commit 2616cc7
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions cliff.toml
Original file line number Diff line number Diff line change
@@ -4,6 +4,9 @@
# Lines starting with "#" are comments.
# Configuration options are organized into tables and keys.
# See documentation for more information on available options.
[remote.github]
owner = "Lagrange-Labs"
repo = "lgn-coprocessor"

[changelog]
# template for the changelog header
@@ -20,23 +23,30 @@ body = """
{% endif %}\
{% if previous %}\
{% if previous.commit_id and commit_id %}
[{{ previous.commit_id | truncate(length=7, end="") }}]({{ previous.commit_id }})...\
[{{ commit_id | truncate(length=7, end="") }}]({{ commit_id }})
[{{ previous.commit_id | truncate(length=7, end="") }}]({{ self::remote_url() }}/commit/{{ previous.commit_id }})...\
[{{ commit_id | truncate(length=7, end="") }}]({{ self::remote_url() }}/commit/{{ commit_id }})
{% endif %}\
{% endif %}\
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | striptags | trim | upper_first }}
{% for commit in commits | filter(attribute="scope") | sort(attribute="scope") %}
- {% if commit.scope %}*({{ commit.scope }})* {% endif %}\
{% if commit.breaking %}[**breaking**] {% endif %}\
{{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}]({{ commit.id }}))\\
{{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}]({{ self::remote_url() }}/commit/{{ commit.id }}))\\
{% if commit.remote.pr_number %} in \
[#{{ commit.remote.pr_number }}]({{ self::remote_url() }}/pull/{{ commit.remote.pr_number }}) \
{%- endif %}
{% endfor %}
{% raw %}\n{% endraw %}\
{%- for commit in commits %}
- {{ commit.message | upper_first }}
{% endfor -%}
{% raw %}\n{% endraw %}\
{% endfor %}\n
{%- macro remote_url() -%}
https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}
{%- endmacro -%}
"""
# template for the changelog footer
footer = """

0 comments on commit 2616cc7

Please sign in to comment.