sort new boards & new languages lists in circuitpython.org update PR

This commit is contained in:
Jeff Epler 2023-03-30 15:39:25 -05:00
parent 703b8b2272
commit 96b2604083
No known key found for this signature in database
GPG Key ID: D5BF15AB975AB4DE
1 changed files with 2 additions and 2 deletions

View File

@ -136,10 +136,10 @@ def create_pr(changes, updated, git_info, user):
pr_title = "Automated website update for release {}".format(changes["new_release"]) pr_title = "Automated website update for release {}".format(changes["new_release"])
boards = "" boards = ""
if changes["new_boards"]: if changes["new_boards"]:
boards = "New boards:\n* " + "\n* ".join(changes["new_boards"]) boards = "New boards:\n* " + "\n* ".join(sorted(changes["new_boards"]))
languages = "" languages = ""
if changes["new_languages"]: if changes["new_languages"]:
languages = "New languages:\n* " + "\n* ".join(changes["new_languages"]) languages = "New languages:\n* " + "\n* ".join(sorted(changes["new_languages"]))
message = "Automated website update for release {} by Blinka.\n\n{}\n\n{}\n".format( message = "Automated website update for release {} by Blinka.\n\n{}\n\n{}\n".format(
changes["new_release"], boards, languages changes["new_release"], boards, languages
) )