From 153f71fb0d11dd038b2c923899de17a4ac9c4931 Mon Sep 17 00:00:00 2001 From: Joseph Macaranas Date: Sat, 2 Aug 2025 22:13:43 -0400 Subject: [PATCH] Append, instead of prepend, breadcrumb for patch backs to old repos --- .github/scripts/pr_merge_sync_patches.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/scripts/pr_merge_sync_patches.py b/.github/scripts/pr_merge_sync_patches.py index eb72c399c1..a26fa46447 100644 --- a/.github/scripts/pr_merge_sync_patches.py +++ b/.github/scripts/pr_merge_sync_patches.py @@ -128,9 +128,9 @@ def _extract_commit_message_from_patch(patch_path: Path) -> str: return "".join(commit_msg_lines).strip() def _format_commit_message(monorepo_url: str, pr_number: int, merge_sha: str, original_msg: str) -> str: - """Prepend a sync annotation to the original commit message.""" - annotation = f"[rocm-systems] {monorepo_url}#{pr_number} (commit {merge_sha[:7]})\n\n" - return annotation + original_msg + """Append a sync annotation to the original commit message.""" + annotation = f"\n[rocm-systems] {monorepo_url}#{pr_number} (commit {merge_sha[:7]})\n" + return original_msg + annotation def _commit_changes(repo_path: Path, message: str, author_name: str, author_email: str) -> None: """Commit staged changes with the specified author and message."""