Skip to content

Commit 0aa5d60

Browse files
committed
fix: use consistent separator style for PR title output
Remove the markdown-style '# PR Title Validation' heading from result.txt. When the PR title check fails after other failures, use '--- PR Title ---' to match the existing commit check separator style (e.g. '--- Commit 2/6:').
1 parent 3512c24 commit 0aa5d60

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎main.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,10 +246,10 @@ def run_commit_check() -> int:
246246
pr_title = get_pr_title()
247247
if pr_title:
248248
cmd_args = ["--message"]
249-
output_prefix = "# PR Title Validation\n"
249+
output_prefix = None
250250
if emitted_failure_output:
251251
cmd_args.append("--no-banner")
252-
output_prefix = "\n---\n# PR Title Validation\n"
252+
output_prefix = "\n--- PR Title ---\n"
253253
print("--- PR title check ---")
254254
rc = run_check_command(
255255
cmd_args,

0 commit comments

Comments
 (0)