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)