-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into 732-docs-icon
- Loading branch information
Showing
85 changed files
with
5,296 additions
and
15,759 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{# Tera templates are used to generate the changelog content -#} | ||
{# https://keats.github.io/tera/docs/ -#} | ||
{# Based on Cocogittos remote template, but adds breaking changes: https://github.com/cocogitto/cocogitto/blob/main/src/conventional/changelog/template/remote -#} | ||
{# First display all the breaking changes -#} | ||
{% set breaking_commits = commits | filter(attribute="breaking_change", value=true) -%} | ||
{% if breaking_commits | length > 0 -%} | ||
#### ⚠ Breaking Changes | ||
|
||
{% for commit in breaking_commits -%} | ||
{% set commit_link = repository_url ~ "/commit/" ~ commit.id -%} | ||
{% set shorthand = commit.id | truncate(length=7, end="") -%} | ||
{% for footer in commit.footer | filter(attribute="token", value="BREAKING CHANGE") -%} | ||
- {{ footer.content }} - ([{{shorthand}}]({{ commit_link }})) | ||
{% endfor -%} | ||
{% endfor -%} | ||
{% endif %} | ||
|
||
{# Now group the rest of the commits and display them -#} | ||
{% set typed_commit_map = commits | group_by(attribute="type") -%} | ||
{% set type_order = ["Features", "Bug Fixes", "Performance Improvements", "Miscellaneous Chores", "Documentation", "Refactoring", "Build system", "Style"] -%} | ||
{% for type in type_order -%} | ||
{% if typed_commit_map[type] -%} | ||
#### {{ type | upper_first }} | ||
{% for scope, scoped_commits in typed_commit_map[type] | group_by(attribute="scope") -%} | ||
|
||
{% for commit in scoped_commits | sort(attribute="scope") -%} | ||
{% if commit.author and repository_url -%} | ||
{% set author = "@" ~ commit.author -%} | ||
{% set author_link = platform ~ "/" ~ commit.author -%} | ||
{% set author = "[" ~ author ~ "](" ~ author_link ~ ")" -%} | ||
{% else -%} | ||
{% set author = commit.signature -%} | ||
{% endif -%} | ||
{% set commit_link = repository_url ~ "/commit/" ~ commit.id -%} | ||
{% set shorthand = commit.id | truncate(length=7, end="") -%} | ||
- **({{ scope }})** {{ commit.summary }} - ([{{shorthand}}]({{ commit_link }})) - {{ author }} | ||
{% endfor -%} | ||
|
||
{% endfor -%} | ||
|
||
{% for commit in typed_commit_map[type] | unscoped -%} | ||
{% if commit.author and repository_url -%} | ||
{% set author = "@" ~ commit.author -%} | ||
{% set author_link = platform ~ "/" ~ commit.author -%} | ||
{% set author = "[" ~ author ~ "](" ~ author_link ~ ")" -%} | ||
{% else -%} | ||
{% set author = commit.signature -%} | ||
{% endif -%} | ||
{% set commit_link = repository_url ~ "/commit/" ~ commit.id -%} | ||
{% set shorthand = commit.id | truncate(length=7, end="") -%} | ||
- {{ commit.summary }} - ([{{shorthand}}]({{ commit_link }})) - {{ author }} | ||
{% endfor -%} | ||
{% endif %} | ||
{% endfor -%} |
Oops, something went wrong.