generate_changelog.py: add sections for "Performance" and "Removed"
This commit is contained in:
parent
6be17136f2
commit
8d2c8c203c
|
|
@ -154,6 +154,8 @@ def changelog_from_prs(pr_infos: List[PrInfo], crate_name: str) -> str:
|
|||
|
||||
fixed = []
|
||||
added = []
|
||||
performance = []
|
||||
removed = []
|
||||
rest = []
|
||||
for pr in pr_infos:
|
||||
summary = pr_summary(pr, crate_name)
|
||||
|
|
@ -161,6 +163,10 @@ def changelog_from_prs(pr_infos: List[PrInfo], crate_name: str) -> str:
|
|||
fixed.append(pr)
|
||||
elif summary.startswith("Add") or "feature" in pr.labels:
|
||||
added.append(pr)
|
||||
elif "performance" in pr.labels:
|
||||
performance.append(pr)
|
||||
elif summary.startswith("Remove"):
|
||||
removed.append(pr)
|
||||
else:
|
||||
rest.append(pr)
|
||||
|
||||
|
|
@ -168,7 +174,9 @@ def changelog_from_prs(pr_infos: List[PrInfo], crate_name: str) -> str:
|
|||
|
||||
result += pr_info_section(added, crate_name=crate_name, heading="⭐ Added")
|
||||
result += pr_info_section(rest, crate_name=crate_name, heading="🔧 Changed")
|
||||
result += pr_info_section(removed, crate_name=crate_name, heading="🔥 Removed")
|
||||
result += pr_info_section(fixed, crate_name=crate_name, heading="🐛 Fixed")
|
||||
result += pr_info_section(performance, crate_name=crate_name, heading="🚀 Performance")
|
||||
|
||||
return result.rstrip()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue