|
|
|
|
|
|
| [remote.github]
|
| owner = "mayocream"
|
| repo = "koharu"
|
|
|
| [changelog]
|
|
|
|
|
| body = """
|
| {%- macro remote_url() -%}
|
| https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}
|
| {%- endmacro -%}
|
|
|
| {% macro print_commit(commit) -%}
|
| - {% if commit.scope %}*({{ commit.scope }})* {% endif %}\
|
| {% if commit.breaking %}[**breaking**] {% endif %}\
|
| {{ commit.message | upper_first }} - \
|
| ([{{ commit.id | truncate(length=7, end="") }}]({{ self::remote_url() }}/commit/{{ commit.id }}))\
|
| {% endmacro -%}
|
|
|
| {% if version %}\
|
| {% if previous.version %}\
|
| ## [{{ version | trim_start_matches(pat="v") }}]\
|
| ({{ self::remote_url() }}/compare/{{ previous.version }}..{{ version }}) - {{ timestamp | date(format="%Y-%m-%d") }}
|
| {% else %}\
|
| ## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
|
| {% endif %}\
|
| {% else %}\
|
| ## [unreleased]
|
| {% endif %}\
|
|
|
| {% for group, commits in commits | group_by(attribute="group") %}
|
| ### {{ group | striptags | trim | upper_first }}
|
| {% for commit in commits
|
| | filter(attribute="scope")
|
| | sort(attribute="scope") %}
|
| {{ self::print_commit(commit=commit) }}
|
| {%- endfor %}
|
| {% for commit in commits %}
|
| {%- if not commit.scope -%}
|
| {{ self::print_commit(commit=commit) }}
|
| {% endif -%}
|
| {% endfor -%}
|
| {% 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 %}
|
|
|
|
|
| """
|
|
|
|
|
| footer = """
|
| <!-- generated by git-cliff -->
|
| """
|
|
|
| trim = true
|
|
|
| postprocessors = [
|
|
|
| { pattern = '<REPO>', replace = "https://github.com/mayocream/koharu" },
|
| ]
|
|
|
| [git]
|
|
|
|
|
| conventional_commits = true
|
|
|
| filter_unconventional = false
|
|
|
| split_commits = false
|
|
|
| commit_preprocessors = [
|
|
|
| { pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](<REPO>/issues/${2}))" },
|
| ]
|
|
|
|
|
|
|
| commit_parsers = [
|
| { message = "^feat", group = "<!-- 0 -->⛰️ Features" },
|
| { message = "^fix", group = "<!-- 1 -->🐛 Bug Fixes" },
|
| { message = "^doc", group = "<!-- 3 -->📚 Documentation" },
|
| { message = "^perf", group = "<!-- 4 -->⚡ Performance" },
|
| { message = "^refactor\\(clippy\\)", skip = true },
|
| { message = "^refactor", group = "<!-- 2 -->🚜 Refactor" },
|
| { message = "^style", group = "<!-- 5 -->🎨 Styling" },
|
| { message = "^test", group = "<!-- 6 -->🧪 Testing" },
|
| { message = "^chore\\(release\\): prepare for", skip = true },
|
| { message = "^chore\\(deps.*\\)", skip = true },
|
| { message = "^chore\\(pr\\)", skip = true },
|
| { message = "^chore\\(pull\\)", skip = true },
|
| { message = "^chore\\(npm\\).*yarn\\.lock", skip = true },
|
| { message = "^chore.*release", skip = true },
|
| { message = "^chore|^ci", group = "<!-- 7 -->⚙️ Miscellaneous Tasks" },
|
| { body = ".*security", group = "<!-- 8 -->🛡️ Security" },
|
| { message = "^revert", group = "<!-- 9 -->◀️ Revert" },
|
| ]
|
|
|
| protect_breaking_commits = false
|
|
|
| filter_commits = false
|
|
|
| tag_pattern = "[0-9].*"
|
|
|
|
|
|
|
| skip_tags = "beta|alpha"
|
|
|
| ignore_tags = "rc"
|
|
|
| topo_order = false
|
|
|
|
|
| sort_commits = "newest"
|
|
|