You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Will reproduce it, otherwise similar steps will most likely work too on any repo.
To Reproduce
[changelog]
header = """# ChangelogAll notable changes to this project will be documented in this file.\n"""body = """{% if version %}\ # [{{ version | trim_start_matches(pat="v") }}]\ {% if previous %}\ {% if previous.version %}\ (https://github.com/discordjs/discord.js/compare/{{ previous.version }}...{{ version }})\ {% else %} (https://github.com/discordjs/discord.js/tree/{{ version }})\ {% endif %}\ {% endif %} \ - ({{ timestamp | date(format="%Y-%m-%d") }}){% else %}\ # [unreleased]{% endif %}\{% for group, commits in commits | group_by(attribute="group") %} ## {{ group | upper_first }} {% for commit in commits %} - {% if commit.breaking %}\ [**breaking**] \ {% endif %}\ {% if commit.scope %}\ **{{commit.scope}}:** \ {% endif %}\ {{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}](https://github.com/discordjs/discord.js/commit/{{ commit.id }}))\ {% endfor %}{% endfor %}\n"""trim = truefooter = ""
[git]
conventional_commits = truefilter_unconventional = truecommit_parsers = [
{ message = "^feat", group = "Features"},
{ message = "^fix", group = "Bug Fixes"},
{ message = "^docs", group = "Documentation"},
{ message = "^perf", group = "Performance"},
{ message = "^refactor", group = "Refactor"},
{ message = "^typings", group = "Typings"},
{ message = "^types", group = "Typings"},
{ message = ".*deprecated", body = ".*deprecated", group = "Deprecation"},
{ message = "^revert", skip = true},
{ message = "^style", group = "Styling"},
{ message = "^test", group = "Testing"},
{ message = "^chore", skip = true},
{ message = "^ci", skip = true},
{ message = "^build", skip = true},
{ body = ".*security", group = "Security"},
]
filter_commits = truetag_pattern = "[0-9]*"skip_tags = "v[0-9]*|11|12"ignore_tags = ""topo_order = falsesort_commits = "newest"
Expected behavior
Expect previous to be populated to based on the latest actual tag so the desired compare link can be generated with the config above.
Screenshots/Logs
Generated by creating a git tag manually and then running: git cliff --latest --prepend ./CHANGELOG.md
Generated by not creating a git tag and running git cliff --unreleased --tag 14.0.0 --prepend ./CHANGELOG.md
System (please complete the following information):
OS Information: [Windows 11 Pro / 10.0.22000 Build 22000]
Describe the bug
git cliff --unreleased --tag 14.0.0 --prepend ./CHANGELOG.md
If a repo is needed:
https://github.com/discordjs/discord.js
Running:
cd packages/discord.js
git cliff --unreleased --tag 14.0.0 --prepend ./CHANGELOG.md -c ../../cliff.toml -r ../../
Will reproduce it, otherwise similar steps will most likely work too on any repo.
To Reproduce
Expected behavior
Expect
previous
to be populated to based on the latest actual tag so the desired compare link can be generated with the config above.Screenshots/Logs
Generated by creating a git tag manually and then running:
git cliff --latest --prepend ./CHANGELOG.md
Generated by not creating a git tag and running
git cliff --unreleased --tag 14.0.0 --prepend ./CHANGELOG.md
System (please complete the following information):
The text was updated successfully, but these errors were encountered: