From 22728ea5d1371acb50bbb6a6784b0418440ef578 Mon Sep 17 00:00:00 2001 From: Zero King Date: Fri, 27 Oct 2017 11:22:04 +0000 Subject: [PATCH] Notify all maintainers --- pr/webhook/pull_request.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pr/webhook/pull_request.go b/pr/webhook/pull_request.go index 48bb489..d161c49 100644 --- a/pr/webhook/pull_request.go +++ b/pr/webhook/pull_request.go @@ -77,10 +77,8 @@ func (receiver *Receiver) handlePullRequest(body []byte) { if maintainer.GithubHandle != "" { if maintainer.GithubHandle == *event.Sender.Login { isPortMaintainer = true - if len(ports) < 2 || *files[i].Changes > 2 { - isOneMaintainer = true - } - } else if len(ports) < 2 || *files[i].Changes > 2 { + isOneMaintainer = true + } else { handles[maintainer.GithubHandle] = append(handles[maintainer.GithubHandle], port) } }