From 4a230b887cc2f1c6c1b0899056d6cb4a969675f9 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Wed, 20 Feb 2019 23:08:44 +0100 Subject: [PATCH] [fix] another attemp to avoid duplications --- server.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server.py b/server.py index 757b8be..b6251c9 100644 --- a/server.py +++ b/server.py @@ -245,6 +245,9 @@ async def github(request): 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)