mirror of
https://github.com/YunoHost/webhooks.git
synced 2024-09-03 19:56:54 +02:00
[fix] those duplicated are annoying.
This commit is contained in:
parent
f2698baa14
commit
82d0f2ea8b
1 changed files with 5 additions and 4 deletions
|
@ -243,11 +243,12 @@ async def github(request):
|
|||
else:
|
||||
comment = ": " + comment.replace("\r\n", " ")
|
||||
|
||||
# to avoid duplicated with pull_request_review_comment event
|
||||
if state == "commented" and not comment:
|
||||
pass
|
||||
else:
|
||||
notify(f"[{repository}] @{user} {state} pull request #{pull_request_number} {pull_request_title}{comment} {url}", repository=repository)
|
||||
|
||||
# to avoid duplicated with pull_request_review_comment event
|
||||
elif action == "commented":
|
||||
pass
|
||||
else:
|
||||
notify(f"[{repository}] @{user} {action} review pull request #{pull_request_number}: {pull_request_title} {url}", repository=repository)
|
||||
|
||||
|
|
Loading…
Reference in a new issue