From 9ab9400b464036faac07e0d406957a415a83d80f Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 13 Jan 2019 01:34:07 +0000 Subject: Only show issue comment edit events when the body text of the comment has actually changed (github.py) --- modules/github.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules/github.py') diff --git a/modules/github.py b/modules/github.py index cf10f86a..6d66b187 100644 --- a/modules/github.py +++ b/modules/github.py @@ -325,6 +325,11 @@ class Module(ModuleManager.BaseModule): return ["[issue #%d] %s %s: %s - %s" % (number, author, action_desc, issue_title, url)] def issue_comment(self, event, full_name, data): + if "changes" in data: + # don't show this event when nothing has actually changed + if data["changes"]["body"]["from"] == data["comment"]["body"]: + return + number = data["issue"]["number"] action = data["action"] issue_title = data["issue"]["title"] -- cgit v1.3.1-10-gc9f91