aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2019-01-13 01:34:07 +0000
committerGravatar jesopo2019-01-13 01:34:07 +0000
commit9ab9400b464036faac07e0d406957a415a83d80f (patch)
tree32814bc89a6226fb95471672dc9762bf91354d63
parentMade positive karma show as LIGHTGREEN, not GREEN (karma.py) (diff)
signature
Only show issue comment edit events when the body text of the comment has
actually changed (github.py)
-rw-r--r--modules/github.py5
1 files changed, 5 insertions, 0 deletions
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"]