|
| 1 | +[remote.github] |
| 2 | +owner = "REditorSupport" |
| 3 | +repo = "vscode-R-syntax" |
| 4 | + |
| 5 | +[changelog] |
| 6 | +header = """ |
| 7 | +# Changelog |
| 8 | +
|
| 9 | +""" |
| 10 | +body = """ |
| 11 | +{% if version %}\ |
| 12 | + ## {{ version | trim_start_matches(pat="v") }} - {{ timestamp | date(format="%Y-%m-%d") }}\ |
| 13 | +{% else %}\ |
| 14 | + ## Unreleased\ |
| 15 | +{% endif %}\ |
| 16 | +{% for group, commits in commits | group_by(attribute="group") %} |
| 17 | +
|
| 18 | + ### {{ group | upper_first }} |
| 19 | + {% for commit in commits %} |
| 20 | + {% set_global issues = [] %}\ |
| 21 | + {% if commit.remote.pr_number %}\ |
| 22 | + {% set_global issues = issues | concat(with=commit.remote.pr_number) %}\ |
| 23 | + {%- endif %}\ |
| 24 | + {% for link in commit.links %}\ |
| 25 | + {% set_global issues = issues | concat(with=link.text | split(pat="#") | last) %}\ |
| 26 | + {%- endfor -%}\ |
| 27 | + {% if commit.remote.pr_title -%}\ |
| 28 | + {%- set commit_message = commit.remote.pr_title -%}\ |
| 29 | + {%- else -%}\ |
| 30 | + {%- set commit_message = commit.message -%}\ |
| 31 | + {%- endif -%}\ |
| 32 | + * {{ commit_message | split(pat="\n") | first | trim }}\ |
| 33 | + {% set_global issues = issues | unique %}\ |
| 34 | + {% if issues | length > 0 %} (\ |
| 35 | + {% for issue in issues %}\ |
| 36 | + [#{{ issue }}](https://github.com/randy3k/radian/issues/{{ issue }})\ |
| 37 | + {% if not loop.last %}, {% endif %}\ |
| 38 | + {%- endfor -%})\ |
| 39 | + {%- endif %}\ |
| 40 | + {%- endfor -%}\n |
| 41 | +{% endfor %}\ |
| 42 | +{% if version %} |
| 43 | + {% if previous.version %} |
| 44 | + **Full Changelog**: https://github.com/randy3k/radian/compare/{{ previous.version }}...{{ version }} |
| 45 | + {% endif %} |
| 46 | +{% else -%} |
| 47 | + {% raw %}\n{% endraw %} |
| 48 | +{% endif %}\ |
| 49 | +""" |
| 50 | +trim = true |
| 51 | +footer = """ |
| 52 | +<!-- generated by git-cliff --> |
| 53 | +""" |
| 54 | +postprocessors = [] |
| 55 | + |
| 56 | +[git] |
| 57 | +conventional_commits = false |
| 58 | +split_commits = false |
| 59 | +commit_parsers = [ |
| 60 | + { message = "(?i)^feat\\b", group = "Features" }, |
| 61 | + { message = "(?i)^fix\\b", group = "Bug Fixes" }, |
| 62 | + { message = "(?i)^docs\\b", group = "Documentation" }, |
| 63 | + { message = "(?i)^perf\\b", group = "Performance" }, |
| 64 | + { message = "(?i)^refactor\\b", group = "Refactor" }, |
| 65 | + { message = "(?i)^style\\b", group = "Styling" }, |
| 66 | + { message = "(?i)^test\\b", group = "Testing" }, |
| 67 | + { message = "(?i)^(chore|bump to|Merge branch)\\b", skip = true }, |
| 68 | + { body = ".*", group = "Other" }, |
| 69 | +] |
| 70 | +link_parsers = [ |
| 71 | + { pattern = "(?i)\\b(?:close|closes|closed|fix|fixes|fixed|resolve|resolves|resolved) #(\\d+)", href = "https://github.com/randy3k/radian/issues/$1" }, |
| 72 | +] |
| 73 | +filter_commits = true |
| 74 | +topo_order = false |
| 75 | +sort_commits = "oldest" |
0 commit comments