Remove accidental escalation of approval requests (#12911)

This fix reduces the extra approval requests that started appearing
recently for stuff like /imagine pages
This commit is contained in:
Mike McNeil 2023-07-21 22:37:29 -05:00 committed by GitHub
parent 36ffc63755
commit e591744b32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -361,6 +361,7 @@ module.exports = {
if (isAuthorAncestralDRI || isSenderAncestralDRI) {
// For the same reasons as above, if the original PR author or you (current author/editor)
// are the editor, then we do nothing.
break;
} else if (nearestAncestralDri) {// Otherwise, if we have our DRI, we can stop here.
reviewer = nearestAncestralDri;
break;