mirror of
https://github.com/element-hq/ess-helm.git
synced 2026-12-01 22:32:45 -08:00
Swap order of fixed and changed in release notes
This commit is contained in:
1 parent
67b39cfd24
commit
d0f8a67f3b
3 files changed
+6
-5
No files matched your search
@@ -0,0 +1 @@
|
||||
Tweak changelog sections ordering.
|
||||
+4
-4
@@ -93,13 +93,13 @@ name = "Added"
|
||||
showcontent = true
|
||||
|
||||
[[tool.towncrier.type]]
|
||||
directory = "fixed"
|
||||
name = "Fixed"
|
||||
directory = "changed"
|
||||
name = "Changed"
|
||||
showcontent = true
|
||||
|
||||
[[tool.towncrier.type]]
|
||||
directory = "changed"
|
||||
name = "Changed"
|
||||
directory = "fixed"
|
||||
name = "Fixed"
|
||||
showcontent = true
|
||||
|
||||
[[tool.towncrier.type]]
|
||||
|
||||
@@ -25,7 +25,7 @@ def find_news_fragments(root_dir):
|
||||
)
|
||||
)
|
||||
new_fragments = list({"description": description, "kind": kind} for description, kind in unique_new_fragments)
|
||||
kind_order = ["security", "deprecated", "added", "fixed", "changed", "removed"]
|
||||
kind_order = ["security", "deprecated", "added", "changed", "fixed", "removed"]
|
||||
# We order the list by kind and description alphabetically
|
||||
new_fragments.sort(key=lambda x: str(kind_order.index(x["kind"])) + x["description"])
|
||||
return new_fragments
|
||||
|
||||
Reference in new issue
Block a user