Skip to content

Commit

Permalink
fix(auth): convert usernames to lowercase to prevent false flags
Browse files Browse the repository at this point in the history
  • Loading branch information
wdhdev authored Nov 19, 2023
1 parent 7ce31c4 commit 00c4e64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ module.exports = (app) => {
const oldFileOwner = oldFile.owner.username;
const prOwner = context.payload.pull_request.user.login;
let authorized = false;
if (oldFileOwner === prOwner) {
if (oldFileOwner.toLowerCase() === prOwner.toLowerCase()) {
authorized = true;
}

Expand Down

0 comments on commit 00c4e64

Please sign in to comment.