webhooks: Add body to PR Review Event message for GitHub Integration.

This commit passes the body of the PR Review as the message to
the helper function that generates the message to be sent by the
GitHub Integration.

Previously when a PR Review was done the message sent would just
include the link of the review but the message didn't include the
body the review. After this commit, the message also includes the
body of the review.

Fixes #24676
This commit is contained in:
sbansal1999
2023-04-04 07:52:00 +05:30
committed by Tim Abbott
parent 8951319e98
commit f47a1c67a6
2 changed files with 3 additions and 2 deletions

View File

@@ -490,6 +490,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),
)