Skip to content

Commit d953691

Browse files
Merge pull request #127 from element-hq/gaelg/add-internal-category
towncrier: add internal category
2 parents b4eb6e4 + aa76225 commit d953691

File tree

7 files changed

+12
-6
lines changed

7 files changed

+12
-6
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

newsfragments/127.internal.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add internal towncrier change category.

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,6 @@ name = "Fixed"
8686

8787
[tool.towncrier.fragment.security]
8888
name = "Security"
89+
90+
[tool.towncrier.fragment.internal]
91+
name = "Internal"

scripts/towncrier_to_helm_annotation.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ def find_news_fragments(root_dir):
1616

1717
for path in Path(root_dir).glob("*"):
1818
if path.is_file():
19-
new_fragments.append(
20-
{
21-
"description": path.read_text().strip(),
22-
"kind": path.name.split(".")[1],
23-
}
24-
)
19+
kind = path.name.split(".")[1]
20+
if kind != "internal":
21+
new_fragments.append(
22+
{
23+
"description": path.read_text().strip(),
24+
"kind": kind,
25+
}
26+
)
2527
kind_order = ["added", "changed", "removed", "fixed", "security"]
2628
# We order the list by kind and description alphabetically
2729
new_fragments.sort(key=lambda x: str(kind_order.index(x["kind"])) + x["description"])

0 commit comments

Comments
 (0)