Skip to content

Is it possible to "merge" commits in the changelog? #1069

Answered by truenicoco
truenicoco asked this question in Q&A
Discussion options

You must be logged in to vote

It works!

My pyproject.toml:

body = """
{% for group, all_commits in commits | group_by(attribute="group") %}
    {%- if group == "cfix" %}{% continue %}{%- endif %}
    ## {{ group | striptags | trim | upper_first }}
    {% for commit in all_commits %}
        - {% if commit.scope %}*({{ commit.scope }})* {% endif %}\
            {% if commit.breaking %}[**breaking**] {% endif %}\
            {{ commit.message | split(pat="\n") | first | upper_first | trim }} \
            ([`{{ commit.id | truncate(length=7, end="") }}`](./commit/{{ commit.id -}})\
            {% if commit.remote.username %} by @{{ commit.remote.username }}{%- endif -%}
            {%- for cfix_commit in commits | filte…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@truenicoco
Comment options

@truenicoco
Comment options

Answer selected by truenicoco
@Cyclonit
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants