xref: /rust-libc-0.2.174/.release-plz.toml (revision 55bdcfa6)
1b7e7a556STrevor Gross[workspace]
21342b496STrevor Grossgit_release_name = "{{ version }}"
35183d23cSTrevor Grossgit_tag_name = "{{ version }}"
4ffd4bbc8STrevor Gross
5ffd4bbc8STrevor Gross[changelog]
6ffd4bbc8STrevor Grossbody = """
7ffd4bbc8STrevor Gross## [{{ version | trim_start_matches(pat="v") }}]\
8ffd4bbc8STrevor Gross    {%- if release_link -%}\
9ffd4bbc8STrevor Gross        ({{ release_link }})\
10ffd4bbc8STrevor Gross    {% endif %} \
11ffd4bbc8STrevor Gross    - {{ timestamp | date(format="%Y-%m-%d") }}
12ffd4bbc8STrevor Gross{% for group, commits in commits | group_by(attribute="group") %}
13ffd4bbc8STrevor Gross### {{ group | upper_first }}
14ffd4bbc8STrevor Gross    {% for commit in commits %}
15ffd4bbc8STrevor Gross        - {% if commit.scope -%}{{ commit.scope | upper_first }}: {% endif %}
16ffd4bbc8STrevor Gross        {%- if commit.breaking %}[**breaking**] {% endif %}
17ffd4bbc8STrevor Gross        {{- commit.message }}
18ffd4bbc8STrevor Gross        {%- if commit.links %} ([{{ commit.links.1.text }}]({{ commit.links.1.href }})){% endif -%}
19ffd4bbc8STrevor Gross    {% endfor %}
20ffd4bbc8STrevor Gross{% endfor %}
21ffd4bbc8STrevor Gross{%- if github -%}
22ffd4bbc8STrevor Gross{% if github.contributors | filter(attribute="is_first_time", value=true) | length != 0 %}
23ffd4bbc8STrevor Gross  ## New Contributors ❤️
24ffd4bbc8STrevor Gross{% endif %}\
25ffd4bbc8STrevor Gross{% for contributor in github.contributors | filter(attribute="is_first_time", value=true) %}
26ffd4bbc8STrevor Gross  * @{{ contributor.username }} made their first contribution
27ffd4bbc8STrevor Gross    {%- if contributor.pr_number %} in \
28ffd4bbc8STrevor Gross      [#{{ contributor.pr_number }}]({{ self::remote_url() }}/pull/{{ contributor.pr_number }}) \
29ffd4bbc8STrevor Gross    {%- endif %}
30ffd4bbc8STrevor Gross{%- endfor -%}
31ffd4bbc8STrevor Gross{%- endif %}
32ffd4bbc8STrevor Gross"""
33ffd4bbc8STrevor Gross
34ffd4bbc8STrevor Grosscommit_parsers = [
35ffd4bbc8STrevor Gross  { message = '(?i)^(\w+: )?feat', group = "added" },
36ffd4bbc8STrevor Gross  { message = '(?i)^(\w+: )?add', group = "added" },
37ffd4bbc8STrevor Gross  { message = '(?i)^(\w+: )?change', group = "changed" },
38575fa43cSTrevor Gross  { message = '(?i)^(\w+: )?cleanup', group = "cleanup" },
39ffd4bbc8STrevor Gross  { message = '(?i)^(\w+: )?deprecate', group = "deprecated" },
40ffd4bbc8STrevor Gross  { message = '(?i)^(\w+: )?remove', group = "removed" },
41ffd4bbc8STrevor Gross  { message = '(?i)^(\w+: )?fix', group = "fixed" },
42ffd4bbc8STrevor Gross  { message = '(?i)^(\w+: )?fix', group = "fixed" },
43ffd4bbc8STrevor Gross  { message = '^.*', group = "other" },
44ffd4bbc8STrevor Gross]
45ffd4bbc8STrevor Gross
46ffd4bbc8STrevor Grosslink_parsers = [
47ffd4bbc8STrevor Gross    # Extract backport patterns
48*55bdcfa6STrevor Gross    { pattern = '\(backport <.*/(\d+)>\)', text = "#$1", href = "https://github.com/rust-lang/libc/pull/$1"}
49ffd4bbc8STrevor Gross]
50