|
| 1 | +[remote.github] |
| 2 | +owner = "gcarreno" |
| 3 | +repo = "gcarreno-HeidiSQL" |
| 4 | + |
| 5 | +[changelog] |
| 6 | +# A Tera template to be rendered as the changelog's header. |
| 7 | +# See https://keats.github.io/tera/docs/#introduction |
| 8 | +header = """ |
| 9 | +# Change Log |
| 10 | +
|
| 11 | +Notable changes up to the last release. |
| 12 | +
|
| 13 | +""" |
| 14 | +# A Tera template to be rendered for each release in the changelog. |
| 15 | +# See https://keats.github.io/tera/docs/#introduction |
| 16 | +body = """ |
| 17 | +{%- macro remote_url() -%} |
| 18 | + https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }} |
| 19 | +{%- endmacro -%} |
| 20 | +
|
| 21 | +{% macro print_commit(commit) -%} |
| 22 | + - {% if commit.scope %}*({{ commit.scope }})* {% endif %}\ |
| 23 | + {% if commit.breaking %}[**breaking**] {% endif %}\ |
| 24 | + {{ commit.message | upper_first }} - \ |
| 25 | + ([{{ commit.id | truncate(length=7, end="") }}]({{ self::remote_url() }}/commit/{{ commit.id }}))\ |
| 26 | +{% endmacro -%} |
| 27 | +
|
| 28 | +{% if version %}\ |
| 29 | + {% if previous.version %}\ |
| 30 | + ## [{{ version | trim_start_matches(pat="v") }}]\ |
| 31 | + ({{ self::remote_url() }}/compare/{{ previous.version }}..{{ version }}) - {{ timestamp | date(format="%Y-%m-%d") }} |
| 32 | + {% else %}\ |
| 33 | + ## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }} |
| 34 | + {% endif %}\ |
| 35 | +{% else %}\ |
| 36 | + ## [unreleased] |
| 37 | +{% endif %}\ |
| 38 | +
|
| 39 | +{% for group, commits in commits | group_by(attribute="group") %} |
| 40 | + ### {{ group | striptags | trim | upper_first }} |
| 41 | + {% for commit in commits |
| 42 | + | filter(attribute="scope") |
| 43 | + | sort(attribute="scope") %} |
| 44 | + {{ self::print_commit(commit=commit) }} |
| 45 | + {%- endfor %} |
| 46 | + {% for commit in commits %} |
| 47 | + {%- if not commit.scope -%} |
| 48 | + {{ self::print_commit(commit=commit) }} |
| 49 | + {% endif -%} |
| 50 | + {% endfor -%} |
| 51 | +{% endfor -%} |
| 52 | +{%- if github -%} |
| 53 | +{% if github.contributors | filter(attribute="is_first_time", value=false) | length != 0 %} |
| 54 | + ## Contributors |
| 55 | +{% endif %}\ |
| 56 | +{% for contributor in github.contributors | filter(attribute="is_first_time", value=false) %} |
| 57 | + * [@{{ contributor.username }}](https://github.com/{{ contributor.username }}) |
| 58 | + {%- if contributor.pr_number %} in \ |
| 59 | + [#{{ contributor.pr_number }}]({{ self::remote_url() }}/pull/{{ contributor.pr_number }}) \ |
| 60 | + {%- endif %} |
| 61 | +{%- endfor -%} |
| 62 | +{% if github.contributors | filter(attribute="is_first_time", value=true) | length != 0 %} |
| 63 | + ## New Contributors ❤️ |
| 64 | +{% endif %}\ |
| 65 | +{% for contributor in github.contributors | filter(attribute="is_first_time", value=true) %} |
| 66 | + * [@{{ contributor.username }}](https://github.com/{{ contributor.username }}) made their first contribution |
| 67 | + {%- if contributor.pr_number %} in \ |
| 68 | + [#{{ contributor.pr_number }}]({{ self::remote_url() }}/pull/{{ contributor.pr_number }}) \ |
| 69 | + {%- endif %} |
| 70 | +{%- endfor -%} |
| 71 | +{%- endif %} |
| 72 | +
|
| 73 | +
|
| 74 | +""" |
| 75 | +# A Tera template to be rendered as the changelog's footer. |
| 76 | +# See https://keats.github.io/tera/docs/#introduction |
| 77 | +footer = """ |
| 78 | +> [!NOTE] |
| 79 | +> |
| 80 | +> For a list of all the changes up to date, please read [CHANGELOG.md](<REPO>/blob/lazarus/CHANGELOG.md). |
| 81 | +""" |
| 82 | +# Remove leading and trailing whitespaces from the changelog's body. |
| 83 | +trim = true |
| 84 | +# An array of regex based postprocessors to modify the changelog. |
| 85 | +postprocessors = [ |
| 86 | + # Replace the placeholder `<REPO>` with a URL. |
| 87 | + { pattern = '<REPO>', replace = "https://github.com/gcarreno/gcarreno-HeidiSQL" }, # replace repository URL |
| 88 | +] |
| 89 | + |
| 90 | +[git] |
| 91 | +# Parse commits according to the conventional commits specification. |
| 92 | +# See https://www.conventionalcommits.org |
| 93 | +conventional_commits = true |
| 94 | +# Exclude commits that do not match the conventional commits specification. |
| 95 | +filter_unconventional = true |
| 96 | +# Split commits on newlines, treating each line as an individual commit. |
| 97 | +split_commits = false |
| 98 | +# An array of regex based parsers to modify commit messages prior to further processing. |
| 99 | +commit_preprocessors = [ |
| 100 | + # Replace issue numbers with link templates to be updated in `changelog.postprocessors`. |
| 101 | + { pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](<REPO>/issues/${2}))" }, |
| 102 | + # Check spelling of the commit message using https://github.com/crate-ci/typos. |
| 103 | + # If the spelling is incorrect, it will be fixed automatically. |
| 104 | + #{ pattern = '.*', replace_command = 'typos --write-changes -' }, |
| 105 | +] |
| 106 | +# An array of regex based parsers for extracting data from the commit message. |
| 107 | +# Assigns commits to groups. |
| 108 | +# Optionally sets the commit's scope and can decide to exclude commits from further processing. |
| 109 | +commit_parsers = [ |
| 110 | + { message = "^feat", group = "<!-- 0 -->⛰️ Features" }, |
| 111 | + { message = "^fix", group = "<!-- 1 -->🐛 Bug Fixes" }, |
| 112 | + { message = "^doc", group = "<!-- 3 -->📚 Documentation" }, |
| 113 | + { message = "^perf", group = "<!-- 4 -->⚡ Performance" }, |
| 114 | + { message = "^refactor\\(clippy\\)", skip = true }, |
| 115 | + { message = "^refactor", group = "<!-- 2 -->🚜 Refactor" }, |
| 116 | + { message = "^style", group = "<!-- 5 -->🎨 Styling" }, |
| 117 | + { message = "^test", group = "<!-- 6 -->🧪 Testing" }, |
| 118 | + { message = "^chore\\(release\\): prepare for", skip = true }, |
| 119 | + { message = "^chore\\(deps.*\\)", skip = true }, |
| 120 | + { message = "^chore\\(pr\\)", skip = true }, |
| 121 | + { message = "^chore\\(pull\\)", skip = true }, |
| 122 | + { message = "^chore\\(npm\\).*yarn\\.lock", skip = true }, |
| 123 | + { message = "^chore|^ci", group = "<!-- 7 -->⚙️ Miscellaneous Tasks" }, |
| 124 | + { message = "^revert", group = "<!-- 9 -->◀️ Revert" }, |
| 125 | + { message = "^ign", skip = true}, |
| 126 | + { body = ".*security", group = "<!-- 8 -->🛡️ Security" }, |
| 127 | +] |
| 128 | +# Prevent commits that are breaking from being excluded by commit parsers. |
| 129 | +protect_breaking_commits = false |
| 130 | +# Exclude commits that are not matched by any commit parser. |
| 131 | +filter_commits = false |
| 132 | +# Regex to select git tags that represent releases. |
| 133 | +tag_pattern = "v[0-9].*" |
| 134 | +# Regex to select git tags that do not represent proper releases. |
| 135 | +# Takes precedence over `tag_pattern`. |
| 136 | +# Changes belonging to these releases will be included in the next release. |
| 137 | +skip_tags = "beta|alpha" |
| 138 | +# Regex to exclude git tags after applying the tag_pattern. |
| 139 | +ignore_tags = "rc|v2.1.0|v2.1.1" |
| 140 | +# Order releases topologically instead of chronologically. |
| 141 | +topo_order = false |
| 142 | +# Order of commits in each group/release within the changelog. |
| 143 | +# Allowed values: newest, oldest |
| 144 | +sort_commits = "newest" |
0 commit comments