Add info about body for a failed check

This commit is contained in:
Mikhail f. Shiryaev 2022-01-26 13:23:20 +01:00
parent 99e0ce1ab8
commit 6fa6588cb5
No known key found for this signature in database
GPG Key ID: 4B02ED204C7D93F4

View File

@ -212,6 +212,9 @@ if __name__ == "__main__":
description_report = check_pr_description(pr_info)[:139]
if description_report:
print("::notice ::Cannot run, description does not match the template")
logging.info(
"PR body doesn't match the template: (start)\n%s\n(end)", pr_info.body
)
url = (
f"{GITHUB_SERVER_URL}/{GITHUB_REPOSITORY}/"
"blob/master/.github/PULL_REQUEST_TEMPLATE.md?plain=1"