Only show issue comment edit events when the body text of the comment has

actually changed (github.py)
This commit is contained in:
jesopo 2019-01-13 01:34:07 +00:00
parent e523671633
commit 9ab9400b46

View file

@ -325,6 +325,11 @@ class Module(ModuleManager.BaseModule):
return ["[issue #%d] %s %s: %s - %s" % return ["[issue #%d] %s %s: %s - %s" %
(number, author, action_desc, issue_title, url)] (number, author, action_desc, issue_title, url)]
def issue_comment(self, event, full_name, data): 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"] number = data["issue"]["number"]
action = data["action"] action = data["action"]
issue_title = data["issue"]["title"] issue_title = data["issue"]["title"]