Skip to content

Commit

Permalink
Fix #280: Fix bug with multi-cased user names (#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
jameesjohn authored Jul 27, 2021
1 parent eea2542 commit 1c45852
Show file tree
Hide file tree
Showing 3 changed files with 130,613 additions and 132,735 deletions.
5 changes: 4 additions & 1 deletion actions/src/pull_requests/claCheck.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,10 @@ const checkSheet = async (auth) => {
core.setFailed('No data found.');
} else {
core.info(`Checking if ${PR_AUTHOR} has signed the CLA`);
const hasUserSignedCla = flatRows.includes(PR_AUTHOR);
const hasUserSignedCla = flatRows.some(
username => username.toLowerCase() === PR_AUTHOR.toLowerCase()
);

await generateOutput(hasUserSignedCla);
}
}
Expand Down
Loading

0 comments on commit 1c45852

Please sign in to comment.