From 7805a25a28249468effdd43bc0dab365324bd9c0 Mon Sep 17 00:00:00 2001 From: Zero King Date: Sat, 10 Mar 2018 18:16:39 +0000 Subject: [PATCH] pr: Enable maintainer timeout check on openmaintainer PRs --- pr/webhook/pull_request.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pr/webhook/pull_request.go b/pr/webhook/pull_request.go index f9fff84..94ce6cd 100644 --- a/pr/webhook/pull_request.go +++ b/pr/webhook/pull_request.go @@ -142,6 +142,9 @@ func (receiver *Receiver) handlePullRequest(body []byte) { } else if !isAllSubmission && !isMaintainer { // TODO: store in DB maintainerLabels = append(maintainerLabels, "maintainer: requires approval") + } + + if !isNomaintainer && !isAllSubmission && !isMaintainer { receiver.dbHelper.SetPRPendingReview(number, true) }