Skip to content

Commit 491a727

Browse files
Add deprecated and removal sections. Reorganized section listing. Add descriptions.
1 parent e893ffc commit 491a727

File tree

1 file changed

+24
-5
lines changed

1 file changed

+24
-5
lines changed

.github/change_log.py

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -218,16 +218,33 @@ def generate_text_content(tag, pr_info):
218218
"visualization": "libpcl_visualization",
219219
}
220220

221-
changes_order = ("new-feature", "api", "abi", "behavior")
221+
changes_order = ("new-feature", "deprecation", "removal", "behavior", "api", "abi")
222222

223223
changes_titles = {
224224
"new-feature": "New Features",
225-
"api": "API Changes",
226-
"abi": "ABI Changes",
227-
"behavior": "Behavior Changes",
225+
"deprecation": "Deprecated",
226+
"removal": "Removed",
227+
"behavior": "Behavioral changes",
228+
"api": "API changes",
229+
"abi": "ABI changes",
228230
}
229231

230-
changes_labels = {"breaks API": "api", "breaks ABI": "abi", "behavior": "behavior"}
232+
changes_description = {
233+
"new-feature": "Newly added functionalities.",
234+
"deprecation": "Deprecated code scheduled to be removed after two minor releases.",
235+
"removal": "Removal of deprecated code.",
236+
"behavior": "Changes in the expected default behavior.",
237+
"api": "Changes to the API which didn't went through the proper deprecation and removal cycle.",
238+
"abi": "Changes that cause ABI incompatibility but are still API compatible.",
239+
}
240+
241+
changes_labels = {
242+
"breaks API": "api",
243+
"breaks ABI": "abi",
244+
"behavior": "behavior",
245+
"deprecation": "deprecation",
246+
"removal": "removal",
247+
}
231248

232249
# change_log content
233250
clog = []
@@ -293,6 +310,8 @@ def generate_text_content(tag, pr_info):
293310

294311
clog += ["\n### `" + changes_titles[key] + ":`\n"]
295312

313+
clog += ["*" + changes_description[key] + "*\n"]
314+
296315
for pr in changes[key]:
297316
prefix = "".join(["[" + k + "]" for k in pr["modules"]])
298317
if prefix:

0 commit comments

Comments
 (0)