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