mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 00:45:19 +00:00
Fix flipped conditional in DRI auto-request logic (#12792)
This commit is contained in:
parent
61e0c35661
commit
9badb14d98
@ -337,7 +337,7 @@ module.exports = {
|
||||
let reviewer = undefined;//« whether to request review for this change
|
||||
let exactMatchDri = DRI_BY_PATH[changedPath];
|
||||
if (exactMatchDri) {
|
||||
let isAuthorDRI = exactMatchDri !== sender.login.toLowerCase();
|
||||
let isAuthorDRI = exactMatchDri === sender.login.toLowerCase();
|
||||
if (isAuthorDRI) {
|
||||
// If you, the author, are the DRI, then do nothing.
|
||||
// No need to request review from yourself.
|
||||
@ -355,8 +355,8 @@ module.exports = {
|
||||
|
||||
let nearestAncestralDri = DRI_BY_PATH[ancestralPath];// this is like the "catch-all" DRI, for a higher-level path
|
||||
|
||||
let isAuthorAncestralDRI = nearestAncestralDri !== sender.login.toLowerCase();
|
||||
if (isAuthorAncestralDRI) {
|
||||
let isAuthorAncestralDRI = nearestAncestralDri === sender.login.toLowerCase();
|
||||
if (!isAuthorAncestralDRI) {
|
||||
reviewer = nearestAncestralDri;
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user