Skip to content

Commit 8688645

Browse files
sudo-krakenCopilotgithub-advanced-security[bot]
authored
ci: update to release workflow (#2047)
* ci: update to release workflow * build: re-ran lock file update with typeorm 0.3.12 * build: resync lockfile with develop * ci: syntax fix in cliff.toml * Update .github/workflows/release.yml Co-authored-by: Copilot <[email protected]> * reverting co-pilots nonsense @fallenbagel's fault Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --------- Co-authored-by: Copilot <[email protected]> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent de0e9b1 commit 8688645

File tree

3 files changed

+275
-130
lines changed

3 files changed

+275
-130
lines changed

.github/cliff.toml

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
# git-cliff ~ configuration
2+
# https://git-cliff.org/docs/configuration
3+
4+
[changelog]
5+
header = ""
6+
body = """
7+
{%- macro remote_url() -%}
8+
https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}
9+
{%- endmacro -%}
10+
11+
{%- set excluded_users = ["github-actions[bot]", "dependabot[bot]", "renovate[bot]"] -%}
12+
13+
{% macro print_commit(commit) -%}
14+
- {% if commit.scope %}*({{ commit.scope }})* {% endif %}\
15+
{% if commit.breaking %}[**breaking**] {% endif %}\
16+
{{ commit.message | upper_first }} - \
17+
([{{ commit.id | truncate(length=7, end="") }}]({{ self::remote_url() }}/commit/{{ commit.id }}))\
18+
{% endmacro -%}
19+
20+
{% if version %}\
21+
{% if previous.version %}\
22+
## [{{ version | trim_start_matches(pat="v") }}]({{ self::remote_url() }}/compare/{{ previous.version }}..{{ version }}) - {{ timestamp | date(format="%Y-%m-%d") }}
23+
{% else %}\
24+
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
25+
{% endif %}\
26+
{% else %}\
27+
## [unreleased]
28+
{% endif %}\
29+
30+
{%- for group, commits in commits | group_by(attribute="group") %}
31+
### {{ group | striptags | trim | upper_first }}
32+
{%- for commit in commits | filter(attribute="scope") | sort(attribute="scope") %}
33+
{{ self::print_commit(commit=commit) }}
34+
{%- endfor %}
35+
{%- for commit in commits %}
36+
{%- if not commit.scope -%}
37+
{{ self::print_commit(commit=commit) }}
38+
{%- endif -%}
39+
{%- endfor -%}
40+
{%- endfor -%}
41+
42+
{%- set valid_contributors = [] -%}
43+
{%- for c in github.contributors | filter(attribute="is_first_time", value=true) %}
44+
{%- if c.username and c.username not in excluded_users and c.username not in valid_contributors %}
45+
{%- set_global valid_contributors = valid_contributors | concat(with=c.username) %}
46+
{%- endif %}
47+
{%- endfor %}
48+
49+
{%- if valid_contributors | length > 0 %}
50+
## New Contributors ❤️
51+
{%- for username in valid_contributors %}
52+
* @{{ username }} made their first contribution
53+
{%- endfor %}
54+
{%- endif %}
55+
"""
56+
footer = """
57+
<!-- generated by git-cliff -->
58+
"""
59+
trim = true
60+
postprocessors = []
61+
62+
[git]
63+
conventional_commits = true
64+
filter_unconventional = true
65+
split_commits = false
66+
filter_commits = true
67+
commit_preprocessors = [
68+
{ pattern = '.*\[skip ci\].*', replace = "" },
69+
{ pattern = '.*\[ci skip\].*', replace = "" },
70+
]
71+
commit_parsers = [
72+
{ message = "^feat", group = "<!-- 0 -->🚀 Features" },
73+
{ message = "^fix", group = "<!-- 1 -->🐛 Bug Fixes" },
74+
{ message = "^doc", group = "<!-- 3 -->📖 Documentation" },
75+
{ message = "^perf", group = "<!-- 4 -->⚡ Performance" },
76+
{ message = "^refactor", group = "<!-- 2 -->🚜 Refactor" },
77+
{ message = "^style", group = "<!-- 5 -->🎨 Styling" },
78+
{ message = "^test", group = "<!-- 6 -->🧪 Testing" },
79+
{ message = "^chore\\(release\\): prepare for", skip = true },
80+
{ message = "^chore\\(deps.*\\)", skip = true },
81+
{ message = "^chore\\(pr\\)", skip = true },
82+
{ message = "^chore\\(pull\\)", skip = true },
83+
{ message = "^chore\\(git-sync\\)", skip = true },
84+
{ message = "^chore|^ci", group = "<!-- 7 -->⚙️ Miscellaneous Tasks" },
85+
{ body = ".*security", group = "<!-- 8 -->🛡️ Security" },
86+
{ message = "^revert", group = "<!-- 9 -->◀️ Revert" },
87+
{ message = '.*\[skip ci\].*', skip = true },
88+
{ message = '.*\[ci skip\].*', skip = true },
89+
]
90+
protect_breaking_commits = false
91+
tag_pattern = "v?[0-9]+\\.[0-9]+\\.[0-9]+.*"
92+
skip_tags = "beta|alpha|rc"
93+
topo_order = false
94+
sort_commits = "newest"

0 commit comments

Comments
 (0)