-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(changelog): use tera whitespace escapes instead of antislash
- Loading branch information
Showing
8 changed files
with
166 additions
and
148 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 |
---|---|---|
@@ -1,23 +1,27 @@ | ||
{% for type, typed_commits in commits | sort(attribute="type")| group_by(attribute="type")%} \ | ||
\ | ||
{% for type, typed_commits in commits | sort(attribute="type")| group_by(attribute="type") -%} | ||
#### {{ type | upper_first }} | ||
\ | ||
{% for scope, scoped_commits in typed_commits | group_by(attribute="scope") %} \ | ||
{% for commit in scoped_commits | sort(attribute="scope") %} \ | ||
{% if commit.author %} \ | ||
{% set author = "@" ~ commit.author %} \ | ||
{% else %} \ | ||
{% set author = commit.signature %} \ | ||
{% endif %} \ | ||
- {{ commit.id }} - **({{ scope }})** {{ commit.summary }} - {{ author }} | ||
{% endfor %} \ | ||
{% endfor %} \ | ||
{% for commit in typed_commits | unscoped %} \ | ||
{% if commit.author %} \ | ||
{% set author = "@" ~ commit.author %} \ | ||
{% else %} \ | ||
{% set author = commit.signature %} \ | ||
{% endif %} \ | ||
- {{ commit.id }} - {{ commit.summary }} - {{ author }} | ||
{% endfor %} \ | ||
{% endfor %} \ | ||
{% for scope, scoped_commits in typed_commits | group_by(attribute="scope") -%} | ||
|
||
{% for commit in scoped_commits | sort(attribute="scope") -%} | ||
{% if commit.author -%} | ||
{% set author = "@" ~ commit.author -%} | ||
{% else -%} | ||
{% set author = commit.signature -%} | ||
{% endif -%} | ||
- {{ commit.id }} - **({{ scope }})** {{ commit.summary }} - {{ author }} | ||
{% endfor -%} | ||
|
||
{% endfor -%} | ||
|
||
{% for commit in typed_commits | unscoped -%} | ||
|
||
{% if commit.author -%} | ||
{% set author = "@" ~ commit.author -%} | ||
{% else -%} | ||
{% set author = commit.signature -%} | ||
{% endif -%} | ||
- {{ commit.id }} - {{ commit.summary }} - {{ author }} | ||
|
||
{% endfor -%} | ||
|
||
{% endfor -%} |
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 |
---|---|---|
@@ -1,45 +1,48 @@ | ||
{% if version.tag and from.tag %} \ | ||
{% if version.tag and from.tag -%} | ||
## [{{ version.tag }}]({{repository_url ~ "/compare/" ~ from.tag ~ ".." ~ version.tag}}) - {{ date | date(format="%Y-%m-%d") }} | ||
{% elif version.tag and from.id %} \ | ||
{% elif version.tag and from.id -%} | ||
## [{{ version.tag }}]({{repository_url ~ "/compare/" ~ from.id ~ ".." ~ version.tag}}) - {{ date | date(format="%Y-%m-%d") }} | ||
{% else %} \ | ||
{% set from = from.id %} \ | ||
{% set to = version.id %} \ | ||
\ | ||
{% set from_shorthand = from.id | truncate(length=7, end="") %} \ | ||
{% set to_shorthand = version.id | truncate(length=7, end="") %} \ | ||
\ | ||
{% else -%} | ||
{% set from = from.id -%} | ||
{% set to = version.id -%} | ||
|
||
{% set from_shorthand = from.id | truncate(length=7, end="") -%} | ||
{% set to_shorthand = version.id | truncate(length=7, end="") -%} | ||
|
||
## Unreleased ([{{ from_shorthand ~ ".." ~ to_shorthand }}]({{repository_url ~ "/compare/" ~ from_shorthand ~ ".." ~ to_shorthand}})) | ||
{% endif %} \ | ||
\ | ||
{% for type, typed_commits in commits | sort(attribute="type")| group_by(attribute="type")%} \ | ||
\ | ||
{% endif -%} | ||
|
||
{% for type, typed_commits in commits | sort(attribute="type")| group_by(attribute="type")-%} | ||
|
||
#### {{ type | upper_first }} | ||
\ | ||
{% for scope, scoped_commits in typed_commits | 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_commits | 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 %} \ | ||
{% endfor %} \ | ||
{% for scope, scoped_commits in typed_commits | 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_commits | 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 -%} | ||
|
||
{% endfor -%} |
Oops, something went wrong.