Skip to content

Commit 3512c24

Browse files
committed
fix: add clear label to PR title check output
- Print '--- PR title check ---' in the log so users can distinguish PR title validation from individual commit message checks - Always set output_prefix for result.txt so the failure output clearly identifies which check failed
1 parent d02833d commit 3512c24

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎main.py‎

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

0 commit comments

Comments
 (0)