From 00973491a7c80afdc68365c39a743f587d2238d2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 16 Mar 2026 22:56:57 +0000 Subject: [PATCH 1/2] Initial plan From 53d0e15d697102fbd89a415ecd21d56b3b24ae28 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 16 Mar 2026 22:58:36 +0000 Subject: [PATCH 2/2] fix: preserve original commit message whitespace in get_pr_commit_messages Co-authored-by: shenxianpeng <3353385+shenxianpeng@users.noreply.github.com> --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 846518c..aa4bd88 100755 --- a/main.py +++ b/main.py @@ -54,7 +54,7 @@ def get_pr_commit_messages() -> list[str]: check=False, ) if result.returncode == 0 and result.stdout: - return [m.strip() for m in result.stdout.split("\x00") if m.strip()] + return [m.rstrip("\n") for m in result.stdout.split("\x00") if m.rstrip("\n")] except Exception: pass return []