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
fix(github): compare the bot login case-insensitively when dismissing its approval (#6614) (#6662)
dismissLatestBotApproval matched review.user.login against `${GITHUB_APP_SLUG}[bot]`
with a case-sensitive ===, unlike every other bot-login check in this subsystem
(isLoopOverBotComment, normalizeGitHubSlug/isBotActor), which all lowercase first.
GitHub's canonical login casing need not match however GITHUB_APP_SLUG is
configured. On a mismatch this found nothing and returned { dismissed: false } --
a silent no-op, no error, leaving a stale bot approval standing for a
review-evasion or re-review flow that expects it gone.
Scoped to the login comparison only: pagination, latest-across-pages selection,
the best-effort try/catch and the dismissal write are untouched.
Closes#6614
Co-authored-by: luciferlive112116 <291889058+luciferlive112116@users.noreply.github.com>
0 commit comments