Add Breaking Change issues to the CHANGELOG

This commit is contained in:
Fabrice Reix 2023-09-21 09:40:36 +02:00
parent f49dc0345c
commit 3a158a815f
No known key found for this signature in database
GPG Key ID: BF5213154B2E7155
1 changed files with 6 additions and 2 deletions

View File

@ -173,12 +173,16 @@ def generate_md(
for author in authors:
s += "\n[@%s](https://github.com/%s)," % (author, author)
categories = {"enhancement": "Enhancements", "bug": "Bugs Fixed"}
categories = {
"breaking": "Breaking Changes",
"enhancement": "Enhancements",
"bug": "Bugs Fixed",
}
for category in categories:
category_pulls = [pull for pull in pulls if category in pull.tags]
if len(category_pulls) > 0:
s += "\n\n\n" + categories[category] + ":" + "\n\n"
s += "\n\n" + categories[category] + ":" + "\n\n"
for pull in category_pulls:
issues = " ".join(
"[#%s](%s/issues/%s)" % (issue, hurl_repo_url, issue)