-
-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix rendered changelog with new version of towncrier #1598
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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 @@ | ||
Fix rendered changelog with new version of towncrier. |
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,39 +1,66 @@ | ||
[tool.towncrier] | ||
version = "unused" | ||
filename = "../rendered.md" | ||
issue_format = "[#{issue}](https://github.com/matrix-org/matrix-spec/issues/{issue})" | ||
title_format = "### {name}" # Matches rendered spec, even if awkward | ||
underlines = " " # 3 spaces intentionally to hide RST headings | ||
|
||
# Note: The names below have the <strong> tag built-in so the rendered spec *and* the generated | ||
# changelog can benefit from sane headings. | ||
filename = "rendered.md" | ||
template = "template.md.jinja" | ||
|
||
[[tool.towncrier.type]] | ||
directory = "breaking" | ||
name = "<strong>Breaking Changes</strong>" | ||
name = "Breaking Changes" | ||
showcontent = true | ||
|
||
[[tool.towncrier.type]] | ||
directory = "deprecation" | ||
name = "<strong>Deprecations</strong>" | ||
name = "Deprecations" | ||
showcontent = true | ||
|
||
[[tool.towncrier.type]] | ||
directory = "new" | ||
name = "<strong>New Endpoints</strong>" | ||
name = "New Endpoints" | ||
showcontent = true | ||
|
||
[[tool.towncrier.type]] | ||
directory = "removal" | ||
name = "<strong>Removed Endpoints</strong>" | ||
name = "Removed Endpoints" | ||
showcontent = true | ||
|
||
[[tool.towncrier.type]] | ||
directory = "feature" | ||
name = "<strong>Backwards Compatible Changes</strong>" | ||
name = "Backwards Compatible Changes" | ||
showcontent = true | ||
|
||
[[tool.towncrier.type]] | ||
directory = "clarification" | ||
name = "<strong>Spec Clarifications</strong>" | ||
name = "Spec Clarifications" | ||
showcontent = true | ||
|
||
[[tool.towncrier.section]] | ||
name = "Client-Server API" | ||
path = "client_server" | ||
|
||
[[tool.towncrier.section]] | ||
name = "Server-Server API" | ||
path = "server_server" | ||
|
||
[[tool.towncrier.section]] | ||
name = "Application Service API" | ||
path = "application_service" | ||
|
||
[[tool.towncrier.section]] | ||
name = "Identity Service API" | ||
path = "identity_service" | ||
|
||
[[tool.towncrier.section]] | ||
name = "Push Gateway API" | ||
path = "push_gateway" | ||
|
||
[[tool.towncrier.section]] | ||
name = "Room Versions" | ||
path = "room_versions" | ||
|
||
[[tool.towncrier.section]] | ||
name = "Appendices" | ||
path = "appendices" | ||
|
||
[[tool.towncrier.section]] | ||
name = "Internal Changes/Tooling" | ||
path = "internal" |
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,24 @@ | ||
{% for section_name, section in sections.items() %} | ||
{% if section_name %} | ||
|
||
### {{section_name}} | ||
{% endif %} | ||
|
||
{% if section %} | ||
{% for category, val in definitions.items() if category in section %} | ||
**{{ definitions[category]['name'] }}** | ||
|
||
{% for content, issues in section[category].items() %} | ||
- {{ content }} ( | ||
{%- for issue in issues %} | ||
[{{issue}}](https://github.com/matrix-org/matrix-spec/issues/{{issue|trim('#')}}){% if not loop.last %}, {% endif %} | ||
{%- endfor %} | ||
) | ||
{% endfor %} | ||
|
||
{% 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
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that towncrier's version is pinned here but not in CI, should that be the case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it should probably be pinned in CI too. Or rather, to save us inevitably forgetting to update one or the other, CI should
pip install -r requirements.txt
rather than installing a random version of towncrier.