Notify all maintainers

This commit is contained in:
Zero King
2017-10-27 11:22:04 +00:00
parent ef010d2954
commit 22728ea5d1

View File

@@ -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)
}
}