You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(scoring): cover sameLogin/sameRepoFullName edge cases in pending-pr-scenarios (#8329)
loadContributorRepoOpenPrSignalRecords filters a contributor's open PRs via
sameLogin (whose `value &&` short-circuit handles a null/undefined authorLogin
from ghost/deleted accounts) and sameRepoFullName (case-insensitive). Neither
the falsy-authorLogin branch nor the case-normalization was exercised. Add three
tests: PRs with null/undefined authorLogin are excluded (short-circuit, no throw
on the null .toLowerCase()); a repoFullName differing only in case still matches;
an authorLogin differing only in case still matches. No production code changed.
Closes#8329
0 commit comments