integrations: Allow null pull request review body in GitHub Integration.

There are instances in which the pull request review body
can be null.

Fixes #26055.
This commit is contained in:
Satyam Bansal
2023-06-27 00:05:14 +05:30
committed by GitHub
parent adcf088740
commit 92a1e3464d
3 changed files with 570 additions and 1 deletions

View File

@@ -519,7 +519,7 @@ def get_pull_request_review_body(helper: Helper) -> str:
url=payload["review"]["html_url"].tame(check_string),
type="PR review",
title=title if include_title else None,
message=payload["review"]["body"].tame(check_string),
message=payload["review"]["body"].tame(check_none_or(check_string)),
)