mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 19:31:58 +00:00
webhooks: Remove description from Issue Assigned event message.
This commit removes the description from the Issue Assigned event message that is sent by the Github Integration. Previously when an issue was assigned, the message also had the description of the issue, which is redundant as the description has been already sent through the issue created event. After this commit, the description no longer appears in the message. Fixes #24554
This commit is contained in:
@@ -165,7 +165,7 @@ def get_issue_body(helper: Helper) -> str:
|
||||
action=action,
|
||||
url=issue["html_url"].tame(check_string),
|
||||
number=issue["number"].tame(check_int),
|
||||
message=issue["body"].tame(check_none_or(check_string)),
|
||||
message=None if action == "assigned" else issue["body"].tame(check_none_or(check_string)),
|
||||
assignee=assignee["login"].tame(check_string) if assignee else None,
|
||||
title=issue["title"].tame(check_string) if include_title else None,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user