chore: fix git cliff configs (#7948)

Co-authored-by: Vlad <kingdgrizzle@gmail.com>
This commit is contained in:
Jeroen Claassens
2022-05-25 11:02:17 +03:00
committed by GitHub
parent fdeac9d9fb
commit 636d4f263b
5 changed files with 190 additions and 175 deletions

View File

@@ -6,29 +6,32 @@ All notable changes to this project will be documented in this file.\n
""" """
body = """ body = """
{% if version %}\ {% if version %}\
# [{{ version | trim_start_matches(pat="v") }}]\ # [{{ version | trim_start_matches(pat="v") }}]\
{% if previous %}\ {% if previous %}\
{% if previous.version %}\ {% if previous.version %}\
(https://github.com/discordjs/discord.js/compare/{{ previous.version }}...{{ version }})\ (https://github.com/discordjs/discord.js/compare/{{ previous.version }}...{{ version }})\
{% else %} {% else %}
(https://github.com/discordjs/discord.js/tree/{{ version }})\ (https://github.com/discordjs/discord.js/tree/{{ version }})\
{% endif %}\ {% endif %}\
{% endif %} \ {% endif %} \
- ({{ timestamp | date(format="%Y-%m-%d") }}) - ({{ timestamp | date(format="%Y-%m-%d") }})
{% else %}\ {% else %}\
# [unreleased] # [unreleased]
{% endif %}\ {% endif %}\
{% for group, commits in commits | group_by(attribute="group") %} {% for group, commits in commits | group_by(attribute="group") %}
## {{ group | upper_first }} ## {{ group | upper_first }}
{% for commit in commits %} {% for commit in commits %}
- {% if commit.breaking %}\ - {% if commit.scope %}\
[**breaking**] \ **{{commit.scope}}:** \
{% endif %}\ {% endif %}\
{% if commit.scope %}\ {{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}](https://github.com/discordjs/discord.js/commit/{{ commit.id }}))\
**{{commit.scope}}:** \ {% if commit.breaking %}\
{% endif %}\ \n\n {% raw %} {% endraw %} ### Breaking Changes:\n \
{{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}](https://github.com/discordjs/discord.js/commit/{{ commit.id }}))\ {% for breakingChange in commit.footers %}\
{% endfor %} {% raw %} {% endraw %} - {{ breakingChange }}\n\
{% endfor %}\
{% endif %}\
{% endfor %}
{% endfor %}\n {% endfor %}\n
""" """
trim = true trim = true
@@ -38,21 +41,21 @@ footer = ""
conventional_commits = true conventional_commits = true
filter_unconventional = true filter_unconventional = true
commit_parsers = [ commit_parsers = [
{ message = "^feat", group = "Features"}, { message = "^feat", group = "Features"},
{ message = "^fix", group = "Bug Fixes"}, { message = "^fix", group = "Bug Fixes"},
{ message = "^docs", group = "Documentation"}, { message = "^docs", group = "Documentation"},
{ message = "^perf", group = "Performance"}, { message = "^perf", group = "Performance"},
{ message = "^refactor", group = "Refactor"}, { message = "^refactor", group = "Refactor"},
{ message = "^typings", group = "Typings"}, { message = "^typings", group = "Typings"},
{ message = "^types", group = "Typings"}, { message = "^types", group = "Typings"},
{ message = ".*deprecated", body = ".*deprecated", group = "Deprecation"}, { message = ".*deprecated", body = ".*deprecated", group = "Deprecation"},
{ message = "^revert", skip = true}, { message = "^revert", skip = true},
{ message = "^style", group = "Styling"}, { message = "^style", group = "Styling"},
{ message = "^test", group = "Testing"}, { message = "^test", group = "Testing"},
{ message = "^chore", skip = true}, { message = "^chore", skip = true},
{ message = "^ci", skip = true}, { message = "^ci", skip = true},
{ message = "^build", skip = true}, { message = "^build", skip = true},
{ body = ".*security", group = "Security"}, { body = ".*security", group = "Security"},
] ]
filter_commits = true filter_commits = true
tag_pattern = "@discordjs\\/builders@.*" tag_pattern = "@discordjs\\/builders@.*"

View File

@@ -6,29 +6,32 @@ All notable changes to this project will be documented in this file.\n
""" """
body = """ body = """
{% if version %}\ {% if version %}\
# [{{ version | trim_start_matches(pat="v") }}]\ # [{{ version | trim_start_matches(pat="v") }}]\
{% if previous %}\ {% if previous %}\
{% if previous.version %}\ {% if previous.version %}\
(https://github.com/discordjs/discord.js/compare/{{ previous.version }}...{{ version }})\ (https://github.com/discordjs/discord.js/compare/{{ previous.version }}...{{ version }})\
{% else %} {% else %}
(https://github.com/discordjs/discord.js/tree/{{ version }})\ (https://github.com/discordjs/discord.js/tree/{{ version }})\
{% endif %}\ {% endif %}\
{% endif %} \ {% endif %} \
- ({{ timestamp | date(format="%Y-%m-%d") }}) - ({{ timestamp | date(format="%Y-%m-%d") }})
{% else %}\ {% else %}\
# [unreleased] # [unreleased]
{% endif %}\ {% endif %}\
{% for group, commits in commits | group_by(attribute="group") %} {% for group, commits in commits | group_by(attribute="group") %}
## {{ group | upper_first }} ## {{ group | upper_first }}
{% for commit in commits %} {% for commit in commits %}
- {% if commit.breaking %}\ - {% if commit.scope %}\
[**breaking**] \ **{{commit.scope}}:** \
{% endif %}\ {% endif %}\
{% if commit.scope %}\ {{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}](https://github.com/discordjs/discord.js/commit/{{ commit.id }}))\
**{{commit.scope}}:** \ {% if commit.breaking %}\
{% endif %}\ \n\n {% raw %} {% endraw %} ### Breaking Changes:\n \
{{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}](https://github.com/discordjs/discord.js/commit/{{ commit.id }}))\ {% for breakingChange in commit.footers %}\
{% endfor %} {% raw %} {% endraw %} - {{ breakingChange }}\n\
{% endfor %}\
{% endif %}\
{% endfor %}
{% endfor %}\n {% endfor %}\n
""" """
trim = true trim = true
@@ -38,21 +41,21 @@ footer = ""
conventional_commits = true conventional_commits = true
filter_unconventional = true filter_unconventional = true
commit_parsers = [ commit_parsers = [
{ message = "^feat", group = "Features"}, { message = "^feat", group = "Features"},
{ message = "^fix", group = "Bug Fixes"}, { message = "^fix", group = "Bug Fixes"},
{ message = "^docs", group = "Documentation"}, { message = "^docs", group = "Documentation"},
{ message = "^perf", group = "Performance"}, { message = "^perf", group = "Performance"},
{ message = "^refactor", group = "Refactor"}, { message = "^refactor", group = "Refactor"},
{ message = "^typings", group = "Typings"}, { message = "^typings", group = "Typings"},
{ message = "^types", group = "Typings"}, { message = "^types", group = "Typings"},
{ message = ".*deprecated", body = ".*deprecated", group = "Deprecation"}, { message = ".*deprecated", body = ".*deprecated", group = "Deprecation"},
{ message = "^revert", skip = true}, { message = "^revert", skip = true},
{ message = "^style", group = "Styling"}, { message = "^style", group = "Styling"},
{ message = "^test", group = "Testing"}, { message = "^test", group = "Testing"},
{ message = "^chore", skip = true}, { message = "^chore", skip = true},
{ message = "^ci", skip = true}, { message = "^ci", skip = true},
{ message = "^build", skip = true}, { message = "^build", skip = true},
{ body = ".*security", group = "Security"}, { body = ".*security", group = "Security"},
] ]
filter_commits = true filter_commits = true
tag_pattern = "@discordjs\\/collection@.*" tag_pattern = "@discordjs\\/collection@.*"

View File

@@ -6,29 +6,32 @@ All notable changes to this project will be documented in this file.\n
""" """
body = """ body = """
{% if version %}\ {% if version %}\
# [{{ version | trim_start_matches(pat="v") }}]\ # [{{ version | trim_start_matches(pat="v") }}]\
{% if previous %}\ {% if previous %}\
{% if previous.version %}\ {% if previous.version %}\
(https://github.com/discordjs/discord.js/compare/{{ previous.version }}...{{ version }})\ (https://github.com/discordjs/discord.js/compare/{{ previous.version }}...{{ version }})\
{% else %} {% else %}
(https://github.com/discordjs/discord.js/tree/{{ version }})\ (https://github.com/discordjs/discord.js/tree/{{ version }})\
{% endif %}\ {% endif %}\
{% endif %} \ {% endif %} \
- ({{ timestamp | date(format="%Y-%m-%d") }}) - ({{ timestamp | date(format="%Y-%m-%d") }})
{% else %}\ {% else %}\
# [unreleased] # [unreleased]
{% endif %}\ {% endif %}\
{% for group, commits in commits | group_by(attribute="group") %} {% for group, commits in commits | group_by(attribute="group") %}
## {{ group | upper_first }} ## {{ group | upper_first }}
{% for commit in commits %} {% for commit in commits %}
- {% if commit.breaking %}\ - {% if commit.scope %}\
[**breaking**] \ **{{commit.scope}}:** \
{% endif %}\ {% endif %}\
{% if commit.scope %}\ {{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}](https://github.com/discordjs/discord.js/commit/{{ commit.id }}))\
**{{commit.scope}}:** \ {% if commit.breaking %}\
{% endif %}\ \n\n {% raw %} {% endraw %} ### Breaking Changes:\n \
{{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}](https://github.com/discordjs/discord.js/commit/{{ commit.id }}))\ {% for breakingChange in commit.footers %}\
{% endfor %} {% raw %} {% endraw %} - {{ breakingChange }}\n\
{% endfor %}\
{% endif %}\
{% endfor %}
{% endfor %}\n {% endfor %}\n
""" """
trim = true trim = true
@@ -38,21 +41,21 @@ footer = ""
conventional_commits = true conventional_commits = true
filter_unconventional = true filter_unconventional = true
commit_parsers = [ commit_parsers = [
{ message = "^feat", group = "Features"}, { message = "^feat", group = "Features"},
{ message = "^fix", group = "Bug Fixes"}, { message = "^fix", group = "Bug Fixes"},
{ message = "^docs", group = "Documentation"}, { message = "^docs", group = "Documentation"},
{ message = "^perf", group = "Performance"}, { message = "^perf", group = "Performance"},
{ message = "^refactor", group = "Refactor"}, { message = "^refactor", group = "Refactor"},
{ message = "^typings", group = "Typings"}, { message = "^typings", group = "Typings"},
{ message = "^types", group = "Typings"}, { message = "^types", group = "Typings"},
{ message = ".*deprecated", body = ".*deprecated", group = "Deprecation"}, { message = ".*deprecated", body = ".*deprecated", group = "Deprecation"},
{ message = "^revert", skip = true}, { message = "^revert", skip = true},
{ message = "^style", group = "Styling"}, { message = "^style", group = "Styling"},
{ message = "^test", group = "Testing"}, { message = "^test", group = "Testing"},
{ message = "^chore", skip = true}, { message = "^chore", skip = true},
{ message = "^ci", skip = true}, { message = "^ci", skip = true},
{ message = "^build", skip = true}, { message = "^build", skip = true},
{ body = ".*security", group = "Security"}, { body = ".*security", group = "Security"},
] ]
filter_commits = true filter_commits = true
tag_pattern = "[0-9]*" tag_pattern = "[0-9]*"

View File

@@ -6,29 +6,32 @@ All notable changes to this project will be documented in this file.\n
""" """
body = """ body = """
{% if version %}\ {% if version %}\
# [{{ version | trim_start_matches(pat="v") }}]\ # [{{ version | trim_start_matches(pat="v") }}]\
{% if previous %}\ {% if previous %}\
{% if previous.version %}\ {% if previous.version %}\
(https://github.com/discordjs/discord.js/compare/{{ previous.version }}...{{ version }})\ (https://github.com/discordjs/discord.js/compare/{{ previous.version }}...{{ version }})\
{% else %} {% else %}
(https://github.com/discordjs/discord.js/tree/{{ version }})\ (https://github.com/discordjs/discord.js/tree/{{ version }})\
{% endif %}\ {% endif %}\
{% endif %} \ {% endif %} \
- ({{ timestamp | date(format="%Y-%m-%d") }}) - ({{ timestamp | date(format="%Y-%m-%d") }})
{% else %}\ {% else %}\
# [unreleased] # [unreleased]
{% endif %}\ {% endif %}\
{% for group, commits in commits | group_by(attribute="group") %} {% for group, commits in commits | group_by(attribute="group") %}
## {{ group | upper_first }} ## {{ group | upper_first }}
{% for commit in commits %} {% for commit in commits %}
- {% if commit.breaking %}\ - {% if commit.scope %}\
[**breaking**] \ **{{commit.scope}}:** \
{% endif %}\ {% endif %}\
{% if commit.scope %}\ {{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}](https://github.com/discordjs/discord.js/commit/{{ commit.id }}))\
**{{commit.scope}}:** \ {% if commit.breaking %}\
{% endif %}\ \n\n {% raw %} {% endraw %} ### Breaking Changes:\n \
{{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}](https://github.com/discordjs/discord.js/commit/{{ commit.id }}))\ {% for breakingChange in commit.footers %}\
{% endfor %} {% raw %} {% endraw %} - {{ breakingChange }}\n\
{% endfor %}\
{% endif %}\
{% endfor %}
{% endfor %}\n {% endfor %}\n
""" """
trim = true trim = true
@@ -38,21 +41,21 @@ footer = ""
conventional_commits = true conventional_commits = true
filter_unconventional = true filter_unconventional = true
commit_parsers = [ commit_parsers = [
{ message = "^feat", group = "Features"}, { message = "^feat", group = "Features"},
{ message = "^fix", group = "Bug Fixes"}, { message = "^fix", group = "Bug Fixes"},
{ message = "^docs", group = "Documentation"}, { message = "^docs", group = "Documentation"},
{ message = "^perf", group = "Performance"}, { message = "^perf", group = "Performance"},
{ message = "^refactor", group = "Refactor"}, { message = "^refactor", group = "Refactor"},
{ message = "^typings", group = "Typings"}, { message = "^typings", group = "Typings"},
{ message = "^types", group = "Typings"}, { message = "^types", group = "Typings"},
{ message = ".*deprecated", body = ".*deprecated", group = "Deprecation"}, { message = ".*deprecated", body = ".*deprecated", group = "Deprecation"},
{ message = "^revert", skip = true}, { message = "^revert", skip = true},
{ message = "^style", group = "Styling"}, { message = "^style", group = "Styling"},
{ message = "^test", group = "Testing"}, { message = "^test", group = "Testing"},
{ message = "^chore", skip = true}, { message = "^chore", skip = true},
{ message = "^ci", skip = true}, { message = "^ci", skip = true},
{ message = "^build", skip = true}, { message = "^build", skip = true},
{ body = ".*security", group = "Security"}, { body = ".*security", group = "Security"},
] ]
filter_commits = true filter_commits = true
tag_pattern = "@discordjs\\/rest@.*" tag_pattern = "@discordjs\\/rest@.*"

View File

@@ -6,29 +6,32 @@ All notable changes to this project will be documented in this file.\n
""" """
body = """ body = """
{% if version %}\ {% if version %}\
# [{{ version | trim_start_matches(pat="v") }}]\ # [{{ version | trim_start_matches(pat="v") }}]\
{% if previous %}\ {% if previous %}\
{% if previous.version %}\ {% if previous.version %}\
(https://github.com/discordjs/discord.js/compare/{{ previous.version }}...{{ version }})\ (https://github.com/discordjs/discord.js/compare/{{ previous.version }}...{{ version }})\
{% else %} {% else %}
(https://github.com/discordjs/discord.js/tree/{{ version }})\ (https://github.com/discordjs/discord.js/tree/{{ version }})\
{% endif %}\ {% endif %}\
{% endif %} \ {% endif %} \
- ({{ timestamp | date(format="%Y-%m-%d") }}) - ({{ timestamp | date(format="%Y-%m-%d") }})
{% else %}\ {% else %}\
# [unreleased] # [unreleased]
{% endif %}\ {% endif %}\
{% for group, commits in commits | group_by(attribute="group") %} {% for group, commits in commits | group_by(attribute="group") %}
## {{ group | upper_first }} ## {{ group | upper_first }}
{% for commit in commits %} {% for commit in commits %}
- {% if commit.breaking %}\ - {% if commit.scope %}\
[**breaking**] \ **{{commit.scope}}:** \
{% endif %}\ {% endif %}\
{% if commit.scope %}\ {{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}](https://github.com/discordjs/discord.js/commit/{{ commit.id }}))\
**{{commit.scope}}:** \ {% if commit.breaking %}\
{% endif %}\ \n\n {% raw %} {% endraw %} ### Breaking Changes:\n \
{{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}](https://github.com/discordjs/discord.js/commit/{{ commit.id }}))\ {% for breakingChange in commit.footers %}\
{% endfor %} {% raw %} {% endraw %} - {{ breakingChange }}\n\
{% endfor %}\
{% endif %}\
{% endfor %}
{% endfor %}\n {% endfor %}\n
""" """
trim = true trim = true
@@ -38,21 +41,21 @@ footer = ""
conventional_commits = true conventional_commits = true
filter_unconventional = true filter_unconventional = true
commit_parsers = [ commit_parsers = [
{ message = "^feat", group = "Features"}, { message = "^feat", group = "Features"},
{ message = "^fix", group = "Bug Fixes"}, { message = "^fix", group = "Bug Fixes"},
{ message = "^docs", group = "Documentation"}, { message = "^docs", group = "Documentation"},
{ message = "^perf", group = "Performance"}, { message = "^perf", group = "Performance"},
{ message = "^refactor", group = "Refactor"}, { message = "^refactor", group = "Refactor"},
{ message = "^typings", group = "Typings"}, { message = "^typings", group = "Typings"},
{ message = "^types", group = "Typings"}, { message = "^types", group = "Typings"},
{ message = ".*deprecated", body = ".*deprecated", group = "Deprecation"}, { message = ".*deprecated", body = ".*deprecated", group = "Deprecation"},
{ message = "^revert", skip = true}, { message = "^revert", skip = true},
{ message = "^style", group = "Styling"}, { message = "^style", group = "Styling"},
{ message = "^test", group = "Testing"}, { message = "^test", group = "Testing"},
{ message = "^chore", skip = true}, { message = "^chore", skip = true},
{ message = "^ci", skip = true}, { message = "^ci", skip = true},
{ message = "^build", skip = true}, { message = "^build", skip = true},
{ body = ".*security", group = "Security"}, { body = ".*security", group = "Security"},
] ]
filter_commits = true filter_commits = true
tag_pattern = "@discordjs\\/voice@.*" tag_pattern = "@discordjs\\/voice@.*"