webidl2wit-cli 0.1.0

CLI that enables easy use of webidl2wit (converting WebIDL to WebAssembly Interface Types)
# https://git-cliff.org/docs/configuration

[changelog]
header = """
# Changelog\n
All notable changes to this project will be documented in this file.\n
"""
# template for the changelog body
# https://keats.github.io/tera/docs/#introduction
body = """
{% if version %}\
    ## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
{% else %}\
    ## [unreleased]
{% endif %}\
{% for group, commits in commits | group_by(attribute="group") %}
    ### {{ group | striptags | trim | upper_first }}
    {% for commit in commits %}
        * {% if commit.scope %}*({{ commit.scope }})* {% endif %}\
          {% if commit.breaking %}[**breaking**] {% endif %}\
          {{ commit.message | split(pat="\n") | first | trim }}\
          {% if commit.remote.username %} by @{{ commit.remote.username }}{%- endif %}\
          {% if commit.remote.pr_number %} in #{{ commit.remote.pr_number }}{%- endif %}
    {% endfor %}
{% endfor %}\n

{%- if github -%}
{% if github.contributors | filter(attribute="is_first_time", value=true) | length != 0 %}
  {% raw %}\n{% endraw -%}
  ## 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 -%}

{%- macro remote_url() -%}
  https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}
{%- endmacro -%}
"""
# remove the leading and trailing spaces
trim = true

[git]
# parse the commits based on https://www.conventionalcommits.org

# regex for parsing and grouping commits
commit_parsers = [
  { message = "^feat(lib)", group = "<!-- 0 -->๐Ÿš€ Features" },
  { message = "^fix(lib)", group = "<!-- 1 -->๐Ÿ› Bug Fixes" },
  { message = "^doc(lib)", group = "<!-- 3 -->๐Ÿ“š Documentation" },
  { message = "^perf(lib)", group = "<!-- 4 -->โšก Performance" },
  { message = "^refactor(lib)", group = "<!-- 2 -->๐Ÿšœ Refactor" },
  { message = "^style(lib)", group = "<!-- 5 -->๐ŸŽจ Styling" },
  { message = "^test(lib)", group = "<!-- 6 -->๐Ÿงช Testing" },
  { message = "^release:", skip = true },
  { message = "^chore(lib)", group = "<!-- 7 -->โš™๏ธ Miscellaneous Tasks" },
]

# filter out the commits that are not matched by commit parsers
filter_commits = true

# sort the tags topologically
topo_order = false

# sort the commits inside sections by oldest/newest order
sort_commits = "newest"

# glob pattern for matching git tags
tag_pattern = "webidl2wit-cli-v[0-9]*"

# regex for skipping tags
skip_tags = ".*beta.*"