mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
integrations: Prevent duplicate GitHub pull request review messages.
GitHub sends two almost identical payloads when a pull request is reviewed, which results in two duplicative notification messages. The payloads have different "action" value, with one having the "submitted" action, whereas the other is "edited" and has an empty "changes" dict. We now ignore the payload with the "edited" action type and an empty "changes" dict. Fixes #26145. Co-authored-by: Pieter CK <pieterceka123@gmail.com>
This commit is contained in:
@@ -479,6 +479,10 @@ A temporary team so that I can get some webhook fixtures!
|
||||
payload = orjson.dumps(data).decode()
|
||||
self.verify_post_is_ignored(payload, "pull_request")
|
||||
|
||||
def test_pull_request_review_edited_empty_changes_ignore(self) -> None:
|
||||
payload = self.get_body("pull_request_review__edited_empty_changes")
|
||||
self.verify_post_is_ignored(payload, "pull_request_review")
|
||||
|
||||
def test_ignored_team_actions(self) -> None:
|
||||
ignored_actions = [
|
||||
"added_to_repository",
|
||||
|
||||
Reference in New Issue
Block a user