mirror of
https://github.com/element-hq/ess-helm.git
synced 2026-01-16 23:13:06 +00:00
towncrier: add internal category
This commit is contained in:
parent
b4eb6e4fcd
commit
aa76225079
7 changed files with 12 additions and 6 deletions
1
newsfragments/127.internal.md
Normal file
1
newsfragments/127.internal.md
Normal file
|
|
@ -0,0 +1 @@
|
|||
Add internal towncrier change category.
|
||||
|
|
@ -86,3 +86,6 @@ name = "Fixed"
|
|||
|
||||
[tool.towncrier.fragment.security]
|
||||
name = "Security"
|
||||
|
||||
[tool.towncrier.fragment.internal]
|
||||
name = "Internal"
|
||||
|
|
|
|||
|
|
@ -16,12 +16,14 @@ def find_news_fragments(root_dir):
|
|||
|
||||
for path in Path(root_dir).glob("*"):
|
||||
if path.is_file():
|
||||
new_fragments.append(
|
||||
{
|
||||
"description": path.read_text().strip(),
|
||||
"kind": path.name.split(".")[1],
|
||||
}
|
||||
)
|
||||
kind = path.name.split(".")[1]
|
||||
if kind != "internal":
|
||||
new_fragments.append(
|
||||
{
|
||||
"description": path.read_text().strip(),
|
||||
"kind": kind,
|
||||
}
|
||||
)
|
||||
kind_order = ["added", "changed", "removed", "fixed", "security"]
|
||||
# We order the list by kind and description alphabetically
|
||||
new_fragments.sort(key=lambda x: str(kind_order.index(x["kind"])) + x["description"])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue