From 34e7cb6739c9096bcdc4096822f847eb686c4a68 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Fri, 30 Dec 2022 19:59:04 +0000 Subject: T4748: Clarify the invalid PR object message --- scripts/check-pr-title-and-commit-messages.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/check-pr-title-and-commit-messages.py b/scripts/check-pr-title-and-commit-messages.py index 9801b7456..07540b22c 100755 --- a/scripts/check-pr-title-and-commit-messages.py +++ b/scripts/check-pr-title-and-commit-messages.py @@ -30,6 +30,7 @@ if __name__ == '__main__': # Get the pull request object pr = requests.get(sys.argv[1]).json() if "title" not in pr: + print("The PR object does not have a title field!") print("Did not receive a valid pull request object, please check the URL!") sys.exit(1) -- cgit v1.2.3