From 412389f71f8a24307e3adba69b38b4b685b04f72 Mon Sep 17 00:00:00 2001 From: Johan Commelin Date: Tue, 4 Feb 2025 07:10:08 +0100 Subject: [PATCH] chore: add commit hash to error message in script/release_notes.py (#6944) This PR adds a commit hash to the message that `script/release_notes.py` prints when it can not find a PR number. --- script/release_notes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/release_notes.py b/script/release_notes.py index 7f9e74ba80..4c7ca83989 100755 --- a/script/release_notes.py +++ b/script/release_notes.py @@ -110,7 +110,7 @@ def main(): pr_number = check_pr_number(first_line) if not pr_number: - sys.stderr.write(f"No PR number found in {first_line}\n") + sys.stderr.write(f"No PR number found in commit:\n{commit_hash}\n{first_line}\n") continue # Remove the first line from the full_message for further processing