diff options
Diffstat (limited to '.github/workflows/cliff.toml')
-rw-r--r-- | .github/workflows/cliff.toml | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/.github/workflows/cliff.toml b/.github/workflows/cliff.toml index ac6a0b3a..a183df33 100644 --- a/.github/workflows/cliff.toml +++ b/.github/workflows/cliff.toml @@ -19,18 +19,12 @@ body = """ {% for commit in commits | filter(attribute="scope") | sort(attribute="scope") %} - - _({{commit.scope}})_ {{ commit.message }} - {%- if commit.breaking %} - {% raw %} {% endraw %}- **BREAKING**: {{commit.breaking_description}} - {%- endif -%} + - {% if commit.breaking %}[**breaking**] {% endif %}_({{commit.scope}})_ {{ commit.message }} {%- endfor %} {% for commit in commits %} {%- if commit.scope -%} {% else -%} - - {{ commit.message }} - {% if commit.breaking -%} - {% raw %} {% endraw %}- **BREAKING**: {{commit.breaking_description}} - {% endif -%} + - {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message }} {% endif -%} {% endfor -%} {% raw %}{% endraw %}\ @@ -50,12 +44,15 @@ conventional_commits = true # filter out the commits that are not conventional filter_unconventional = true # regex for parsing and grouping commits +commit_preprocessors = [ + { pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](https://github.com/lunarvim/lunarvim/pull/${2}))"}, +] commit_parsers = [ { message = "(.*bump|.*Bump)", group = "<!-- 7 --> Miscellaneous Tasks", skip = true}, { message = "^build", group = "<!-- 0 --> Packaging"}, { message = "(^feat|^Feat|^\\[Feat)", group = "<!-- 1 --> Features"}, { message = "(^bug|^Bug|^fix|^\\[Bug)", group = "<!-- 2 --> Bugfix"}, - { message = "^refactor", group = "<!-- 3 --> Refactor"}, + { message = "(^refactor|^ref)", group = "<!-- 3 --> Refactor"}, { message = "^doc", group = "<!-- 4 --> Documentation"}, { message = "^revert", group = "<!-- 5 --> Revert"}, { message = "^perf", group = "<!-- 6 --> Performance"}, |