Skip to content

Commit 84ca51a

Browse files
committed
fix: separate PR title output from commit message output
1 parent 49761f0 commit 84ca51a

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

‎main.py‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,13 +250,21 @@ def run_commit_check() -> int:
250250

251251
with open("result.txt", "w", encoding="utf-8") as result_file:
252252
# ---- 1. PR title check ------------------------------------------------
253+
# Always label the PR title section and suppress its banner so the
254+
# output flows consistently with the commit-message section labels:
255+
#
256+
# --- PR Title:
257+
# <error details>
258+
# --- Commit 1/1:
259+
# <error details>
253260
if PR_TITLE_ENABLED and is_pr_event():
254261
pr_title = get_pr_title()
255262
if pr_title:
256263
rc = run_check_command(
257-
["--message"],
264+
["--message", "--no-banner"],
258265
result_file,
259266
input_text=pr_title,
267+
output_prefix=f"--- PR Title:\n",
260268
)
261269
if rc != 0:
262270
exit_code = max(exit_code, rc)

0 commit comments

Comments
 (0)