Skip to content

Commit 0509d6c

Browse files
authored
fix: preserve original commit message content in get_pr_commit_messages() (#190)
1 parent 94f8d05 commit 0509d6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def get_pr_commit_messages() -> list[str]:
5454
check=False,
5555
)
5656
if result.returncode == 0 and result.stdout:
57-
return [m.strip() for m in result.stdout.split("\x00") if m.strip()]
57+
return [m.rstrip("\n") for m in result.stdout.split("\x00") if m.rstrip("\n")]
5858
except Exception:
5959
pass
6060
return []

0 commit comments

Comments
 (0)