mirror of
https://github.com/YunoHost/webhooks.git
synced 2024-09-03 19:56:54 +02:00
[fix] quick fix for duplicated messages
This commit is contained in:
parent
2bbf3d56c0
commit
dc65353f12
1 changed files with 3 additions and 1 deletions
|
@ -220,6 +220,8 @@ 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}: {comment} {url}", repository=repository)
|
||||
|
||||
# https://developer.github.com/v3/activity/events/types/#pullrequestreviewevent
|
||||
|
|
Loading…
Add table
Reference in a new issue