* Admin shall be able to bypass merge checks.
* Repository admin should not bypass if merge whitelist is set.
* Add code comment about checks that PR are ready
* notAllOverrideableChecksOk->notAllOverridableChecksOk
* Fix merge, require signed currently not overridable.
* fix
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
log.Warn("Forbidden: User %d is not allowed push to protected branch %s in %-v and pr #%d is not ready to be merged: %s",opts.UserID,branchName,repo,pr.Index,err.Error())
log.Warn("Forbidden: User %d is not allowed push to protected branch %s in %-v and pr #%d is not ready to be merged: %s",opts.UserID,branchName,repo,pr.Index,err.Error())
"err":fmt.Sprintf("Not allowed to push to protected branch %s and pr #%d is not ready to be merged: %s",branchName,opts.ProtectedBranchID,err.Error()),
"err":fmt.Sprintf("Not allowed to push to protected branch %s and pr #%d is not ready to be merged: %s",branchName,opts.ProtectedBranchID,err.Error()),
})
return
}
log.Error("Unable to check if mergable: protected branch %s in %-v and pr #%d. Error: %v",opts.UserID,branchName,repo,pr.Index,err)