Skip to content

Commit 778778b

Browse files
committed
Add skip-changelog support and breaking label detection
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
1 parent 6f40167 commit 778778b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

release/make_release.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"documentation": "Documentation",
1717
"maintenance": "Maintenance",
1818
"unknown": "UNKNOWN (Needs Manual Categorization)",
19+
"skip-changelog": None,
1920
}
2021

2122

@@ -138,8 +139,10 @@ def make_notes(contrib_data: dict, version: str):
138139
f"Compatible with OpenSearch and OpenSearch Dashboards version {version}\n\n"
139140
)
140141
for lcat, title in LABEL_CATEGORIES.items():
141-
if len(categories[lcat]) == 0:
142+
if len(categories[lcat]) == 0 or lcat == "skip-changelog":
142143
continue
144+
if lcat == "breaking":
145+
print("\033[33mWARNING: there are breaking changes. These can only occur in major releases.\033[0m", file=sys.stderr)
143146
result += f"### {title}\n"
144147
for pull_req in sorted(
145148
categories[lcat], key=lambda p: int(p["pull_req"]), reverse=True

0 commit comments

Comments
 (0)