-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1645 from oasisprotocol/mz/release/changeLogFragm…
…ents Init Change Log fragments
- Loading branch information
Showing
9 changed files
with
1,026 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# markdownlint configuration for Change Log fragments. | ||
|
||
# For more information, see: | ||
# https://github.com/DavidAnson/markdownlint#optionsconfig. | ||
|
||
# Extend project's main configuration. | ||
extends: ../.markdownlint.yml | ||
|
||
line-length: | ||
# Line length checking is not strict by default. | ||
strict: true | ||
# Change Log fragments will be listed as bullets indented by 2 spaces so they | ||
# should be 2 characters shorter than ordinary lines. | ||
line_length: 78 | ||
|
||
# Change Log fragments should not have a heading as the first line. | ||
first-line-heading: false | ||
|
||
ul-style: | ||
# Enforce a uniform symbol for unordered lists across all Change Log | ||
# fragments. | ||
style: dash |
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,8 @@ | ||
Add Change Log and the Change Log fragments process for assembling it | ||
|
||
This follows the same Change Log fragments process as is used by [Oasis Core]. | ||
|
||
For more details, see [Change Log fragments]. | ||
|
||
[Oasis Core]: https://github.com/oasisprotocol/oasis-core | ||
[Change Log fragments]: .changelog/README.md |
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,16 @@ | ||
# Change Log Fragments | ||
|
||
This directory collects Change Log fragments: | ||
short files that each contain a snippet of Markdown formatted text that will | ||
be assembled using [towncrier] to form the [Change Log] section for the next | ||
release. | ||
|
||
This repository follows the same Change Log fragments style as the | ||
[Oasis Core] repository. | ||
Please, see [its Change Log fragments documentation] for more details. | ||
|
||
[Change Log]: ../CHANGELOG.md | ||
[towncrier]: https://github.com/oasisprotocol/towncrier | ||
[Oasis Core]: https://github.com/oasisprotocol/oasis-core | ||
[its Change Log fragments documentation]: | ||
https://github.com/oasisprotocol/oasis-core/blob/master/.changelog/README.md |
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,39 @@ | ||
{# This a Jinja2 template for preparing a new section of the Change Log with the towncrier utility.#} | ||
## {{ versiondata.version }} ({{ versiondata.date }}) | ||
{% for section, _ in sections.items() %} | ||
|
||
{% if sections[section] %} | ||
{% for category, val in definitions.items() if category in sections[section] %} | ||
{% if definitions[category]['showcontent'] %} | ||
{{ "### " + definitions[category]['name'] }} | ||
|
||
{% for text, values in sections[section][category].items() %} | ||
{% set lines = text.splitlines() %} | ||
{% set referenced_issues = "(" + values | join(',\n ') + ")" %} | ||
{% if lines | length > 2 and lines[1] == "" %} | ||
- {{ lines[0] }} | ||
{{ referenced_issues }} | ||
|
||
{{ lines[2:] | join('\n') }} | ||
{% else %} | ||
- {{ text }} | ||
{{ referenced_issues }} | ||
{% endif %} | ||
{% if not loop.last %} | ||
|
||
{% endif %} | ||
{% endfor %} | ||
{% endif %} | ||
{% if sections[section][category]|length == 0 %} | ||
No significant changes. | ||
|
||
{% else %} | ||
{% endif %} | ||
|
||
{% endfor %} | ||
{% else %} | ||
No significant changes. | ||
|
||
|
||
{% endif %} | ||
{% 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
Oops, something went wrong.