From 63b704679a28062184e89ede0b40273497fcb5e6 Mon Sep 17 00:00:00 2001 From: oleole39 <59071673+oleole39@users.noreply.github.com> Date: Tue, 4 Feb 2025 03:55:25 +0100 Subject: [PATCH 1/2] add specific upgrade instructions if any to PR body --- autoupdate_app_sources/autoupdate_app_sources.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/autoupdate_app_sources/autoupdate_app_sources.py b/autoupdate_app_sources/autoupdate_app_sources.py index 43ea82e3..cb5128dd 100755 --- a/autoupdate_app_sources/autoupdate_app_sources.py +++ b/autoupdate_app_sources/autoupdate_app_sources.py @@ -236,6 +236,10 @@ def run( if msg: commit_msg += f"\n- `{source}` v{version}: {msg}" + self.update_instructions = app / "PACKAGE_UPDATE.md" + if self.update_instructions.exists(): + with open(self.update_instructions) as ui_file: + commit_msg += f"\n\n{ui_file.read()}" self.repo.manifest_raw = self.replace_version_and_asset_in_manifest( self.repo.manifest_raw, From 707b207323d802f05fad50ba97869a984b6b3f0f Mon Sep 17 00:00:00 2001 From: oleole39 <59071673+oleole39@users.noreply.github.com> Date: Tue, 4 Feb 2025 04:25:20 +0100 Subject: [PATCH 2/2] remove one linebreak --- autoupdate_app_sources/autoupdate_app_sources.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoupdate_app_sources/autoupdate_app_sources.py b/autoupdate_app_sources/autoupdate_app_sources.py index cb5128dd..38cfa0f2 100755 --- a/autoupdate_app_sources/autoupdate_app_sources.py +++ b/autoupdate_app_sources/autoupdate_app_sources.py @@ -239,7 +239,7 @@ def run( self.update_instructions = app / "PACKAGE_UPDATE.md" if self.update_instructions.exists(): with open(self.update_instructions) as ui_file: - commit_msg += f"\n\n{ui_file.read()}" + commit_msg += f"\n{ui_file.read()}" self.repo.manifest_raw = self.replace_version_and_asset_in_manifest( self.repo.manifest_raw,