From 6592537ea6448d941db029df8e29f9532c79dc00 Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Fri, 5 Jan 2024 20:54:10 +0100 Subject: [PATCH 1/2] fix title --- tools/autoupdate_app_sources/autoupdate_app_sources.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tools/autoupdate_app_sources/autoupdate_app_sources.py b/tools/autoupdate_app_sources/autoupdate_app_sources.py index b7bd956a..9788d6a4 100644 --- a/tools/autoupdate_app_sources/autoupdate_app_sources.py +++ b/tools/autoupdate_app_sources/autoupdate_app_sources.py @@ -230,15 +230,19 @@ class AppAutoUpdater: if "main" in todos: if strategy == "latest_github_release": + title = f"Upgrade to v{new_version}" message = f"Upgrade to v{new_version}\nChangelog: {changelog_url}" else: - message = f"Upgrade to v{new_version}" + title = message = f"Upgrade to v{new_version}" new_version = todos["main"]["new_version"] new_branch = f"ci-auto-update-{new_version}" else: - message = "Upgrade sources" + title = message = "Upgrade sources" new_branch = "ci-auto-update-sources" + print(f"Title: {title}") + print(f"Message: {message}") + try: # Get the commit base for the new branch, and create it commit_sha = self.repo.get_branch(self.base_branch).commit.sha @@ -271,7 +275,7 @@ class AppAutoUpdater: # Open the PR pr = self.repo.create_pull( - title=message, body=message, head=new_branch, base=self.base_branch + title=title, body=message, head=new_branch, base=self.base_branch ) print("Created PR " + self.repo.full_name + " updated with PR #" + str(pr.id)) From b616930a15d7a348e5888c0d299a8ea7491787d1 Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Fri, 5 Jan 2024 20:56:36 +0100 Subject: [PATCH 2/2] remove debug print --- tools/autoupdate_app_sources/autoupdate_app_sources.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/tools/autoupdate_app_sources/autoupdate_app_sources.py b/tools/autoupdate_app_sources/autoupdate_app_sources.py index 9788d6a4..bb2743bf 100644 --- a/tools/autoupdate_app_sources/autoupdate_app_sources.py +++ b/tools/autoupdate_app_sources/autoupdate_app_sources.py @@ -240,9 +240,6 @@ class AppAutoUpdater: title = message = "Upgrade sources" new_branch = "ci-auto-update-sources" - print(f"Title: {title}") - print(f"Message: {message}") - try: # Get the commit base for the new branch, and create it commit_sha = self.repo.get_branch(self.base_branch).commit.sha