[fix] bad way to avoid duplicated

This commit is contained in:
Laurent Peuch 2019-02-20 23:03:10 +01:00
parent e0f36fa700
commit 9eb8e4a0e0

View file

@ -222,9 +222,7 @@ async def github(request):
if len(comment) > 120:
comment = comment[:120] + "..."
# try to avoid duplicated messages
if action != "created":
notify(f"[{repository}] @{user} {action} a comment on pull request #{pull_request_number} {pull_request_title}: {comment} {url}", repository=repository)
notify(f"[{repository}] @{user} {action} a comment on pull request #{pull_request_number} {pull_request_title}: {comment} {url}", repository=repository)
# https://developer.github.com/v3/activity/events/types/#pullrequestreviewevent
elif hook_type == "pull_request_review":