Improve descriptrion check logging

This commit is contained in:
Mikhail f. Shiryaev 2022-04-05 01:06:46 +02:00
parent 1d60824d6a
commit a665861f5f
No known key found for this signature in database
GPG Key ID: 4B02ED204C7D93F4

View File

@ -262,9 +262,14 @@ if __name__ == "__main__":
remove_labels(gh, pr_info, pr_labels_to_remove)
if description_report:
print("::notice ::Cannot run, description does not match the template")
print(
"::error ::Cannot run, PR description does not match the template: "
f"{description_report}"
)
logging.info(
"PR body doesn't match the template: (start)\n%s\n(end)", pr_info.body
"PR body doesn't match the template: (start)\n%s\n(end)\n" "Reason: %s",
pr_info.body,
description_report,
)
url = (
f"{GITHUB_SERVER_URL}/{GITHUB_REPOSITORY}/"