Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions newsfragments/544.internal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Reorder changelog sections.
38 changes: 26 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,26 +75,40 @@ filename = "CHANGELOG.md"
# See artifacthub changes kinds https://artifacthub.io/docs/topics/annotations/helm/
# "When using the list of objects option the valid supported kinds are added, changed, deprecated, removed, fixed and security."

[tool.towncrier.fragment.added]
name = "Added"

[tool.towncrier.fragment.changed]
name = "Changed"
[[tool.towncrier.type]]
directory = "security"
name = "Security"
showcontent = true

[tool.towncrier.fragment.deprecated]
[[tool.towncrier.type]]
directory = "deprecated"
name = "Deprecated"
showcontent = true

[tool.towncrier.fragment.removed]
name = "Removed"
[[tool.towncrier.type]]
directory = "added"
name = "Added"
showcontent = true

[tool.towncrier.fragment.fixed]
[[tool.towncrier.type]]
directory = "fixed"
name = "Fixed"
showcontent = true

[tool.towncrier.fragment.security]
name = "Security"
[[tool.towncrier.type]]
directory = "changed"
name = "Changed"
showcontent = true

[[tool.towncrier.type]]
directory = "removed"
name = "Removed"
showcontent = true

[tool.towncrier.fragment.internal]
[[tool.towncrier.type]]
directory = "internal"
name = "Internal"
showcontent = true

[[tool.mypy.overrides]]
module = ["pyhelm3.*", "pytest_kubernetes.*"]
Expand Down
2 changes: 1 addition & 1 deletion scripts/towncrier_to_helm_annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ["added", "changed", "deprecated", "removed", "fixed", "security"]
kind_order = ["security", "deprecated", "added", "fixed", "changed", "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
Expand Down
Loading