Skip to content

Commit

Permalink
chore(config): include new contributors in repository changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Aug 24, 2024
1 parent 49df8cb commit 5474978
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
# Configuration options are organized into tables and keys.
# See documentation for more information on available options.

[remote.github]
owner = "orhun"
repo = "git-cliff"

[changelog]
# template for the changelog header
header = """
Expand Down Expand Up @@ -48,7 +52,19 @@ body = """
{{ self::print_commit(commit=commit) }}
{% endif -%}
{% endfor -%}
{% endfor %}\n
{% endfor -%}
{%- if github -%}
{% if github.contributors | filter(attribute="is_first_time", value=true) | length != 0 %}
## New Contributors ❤️
{% endif %}\
{% for contributor in github.contributors | filter(attribute="is_first_time", value=true) %}
* @{{ contributor.username }} made their first contribution
{%- if contributor.pr_number %} in \
[#{{ contributor.pr_number }}]({{ self::remote_url() }}/pull/{{ contributor.pr_number }}) \
{%- endif %}
{%- endfor -%}
{%- endif %}
{% raw %}\n{% endraw -%}
"""
# template for the changelog footer
footer = """
Expand Down

0 comments on commit 5474978

Please sign in to comment.