Swap order of fixed and changed in release notes

This commit is contained in:
Ben Banfield-Zanin committed 2025-07-02 09:29:39 +01:00
1 parent 67b39cfd24
commit d0f8a67f3b
3 files changed
+6 -5

No files matched your search

+1
View File
@@ -0,0 +1 @@
Tweak changelog sections ordering.
+4 -4
View File
@@ -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]]
+1 -1
View File
@@ -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