@@ -40,17 +40,19 @@ body = """
4040 {%- endfor -%}
4141{%- endfor -%}
4242
43- {# New contributors - properly deduped #}
44- {%- if github.contributors | filter(attribute="is_first_time", value=true) %}
45- {%- set_global seen_contributors = [] %}
43+ {%- set valid_contributors = [] -%}
44+ {%- for c in github.contributors | filter(attribute="is_first_time", value=true) %}
45+ {%- if c.username and c.username not in excluded_users and c.username not in valid_contributors %}
46+ {%- set_global valid_contributors = valid_contributors | concat(with=c.username) %}
47+ {%- endif %}
48+ {%- endfor %}
49+
50+ {%- if valid_contributors | length > 0 %}
4651## New Contributors ❤️
47- {%- for contributor in github.contributors | filter(attribute="is_first_time", value=true) %}
48- {%- if contributor.username and contributor.username not in excluded_users and contributor.username not in seen_contributors %}
49- {%- set_global seen_contributors = seen_contributors | concat(with=contributor.username) %}
50- * @{{ contributor.username }} made their first contribution{%- if contributor.pr_number %} in [#{{ contributor.pr_number }}]({{ self::remote_url() }}/pull/{{ contributor.pr_number }}){%- endif %}
51- {%- endif %}
52- {%- endfor %}
53- {%- endif -%}
52+ {%- for username in valid_contributors %}
53+ * @{{ username }} made their first contribution
54+ {%- endfor %}
55+ {%- endif %}
5456"""
5557footer = """
5658<!-- generated by git-cliff -->
@@ -87,8 +89,7 @@ commit_parsers = [
8789 { message = ' .*\[ci skip\].*' , skip = true },
8890]
8991protect_breaking_commits = false
90- tag_pattern = " v?[0-9].[0-9].[0-9]*"
91- skip_tags = " beta|alpha"
92- ignore_tags = " rc"
92+ tag_pattern = " v?[0-9]+\\ .[0-9]+\\ .[0-9]+.*"
93+ skip_tags = " beta|alpha|rc"
9394topo_order = false
9495sort_commits = " newest"
0 commit comments