mirror of
https://github.com/YunoHost/webhooks.git
synced 2024-09-03 19:56:54 +02:00
[fix] bad way to avoid duplicated
This commit is contained in:
parent
e0f36fa700
commit
9eb8e4a0e0
1 changed files with 1 additions and 3 deletions
|
@ -222,9 +222,7 @@ async def github(request):
|
||||||
if len(comment) > 120:
|
if len(comment) > 120:
|
||||||
comment = comment[:120] + "..."
|
comment = comment[:120] + "..."
|
||||||
|
|
||||||
# try to avoid duplicated messages
|
notify(f"[{repository}] @{user} {action} a comment on pull request #{pull_request_number} {pull_request_title}: {comment} {url}", repository=repository)
|
||||||
if action != "created":
|
|
||||||
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
|
# https://developer.github.com/v3/activity/events/types/#pullrequestreviewevent
|
||||||
elif hook_type == "pull_request_review":
|
elif hook_type == "pull_request_review":
|
||||||
|
|
Loading…
Reference in a new issue