Skip to content

Commit

Permalink
Add deprecated and removal sections. Reorganized section listing. Add…
Browse files Browse the repository at this point in the history
… descriptions.
  • Loading branch information
SergioRAgostinho committed Sep 9, 2018
1 parent e893ffc commit 491a727
Showing 1 changed file with 24 additions and 5 deletions.
29 changes: 24 additions & 5 deletions .github/change_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,16 +218,33 @@ def generate_text_content(tag, pr_info):
"visualization": "libpcl_visualization",
}

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

changes_titles = {
"new-feature": "New Features",
"api": "API Changes",
"abi": "ABI Changes",
"behavior": "Behavior Changes",
"deprecation": "Deprecated",
"removal": "Removed",
"behavior": "Behavioral changes",
"api": "API changes",
"abi": "ABI changes",
}

changes_labels = {"breaks API": "api", "breaks ABI": "abi", "behavior": "behavior"}
changes_description = {
"new-feature": "Newly added functionalities.",
"deprecation": "Deprecated code scheduled to be removed after two minor releases.",
"removal": "Removal of deprecated code.",
"behavior": "Changes in the expected default behavior.",
"api": "Changes to the API which didn't went through the proper deprecation and removal cycle.",
"abi": "Changes that cause ABI incompatibility but are still API compatible.",
}

changes_labels = {
"breaks API": "api",
"breaks ABI": "abi",
"behavior": "behavior",
"deprecation": "deprecation",
"removal": "removal",
}

# change_log content
clog = []
Expand Down Expand Up @@ -293,6 +310,8 @@ def generate_text_content(tag, pr_info):

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

clog += ["*" + changes_description[key] + "*\n"]

for pr in changes[key]:
prefix = "".join(["[" + k + "]" for k in pr["modules"]])
if prefix:
Expand Down

0 comments on commit 491a727

Please sign in to comment.