Skip to content

Commit

Permalink
Force lowercase when checking reviewer (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus authored Jul 17, 2023
1 parent 79a0c27 commit 9a492c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion services/bots/src/github-webhook/handlers/platinum_review.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ export class PlatinumReview extends BaseWebhookHandler {

if (
reviews.data.find(
(review) => review.state === 'APPROVED' && expandedOwners.includes(review.user.login),
(review) =>
review.state === 'APPROVED' &&
expandedOwners.includes(review.user.login.toLowerCase()),
)
) {
// A code owner did approve, it's done.
Expand Down

0 comments on commit 9a492c4

Please sign in to comment.