Skip to content

Commit

Permalink
case insensitive author comparison, fix pydantic/pydantic#4354
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelcolvin committed Aug 11, 2022
1 parent cf06f35 commit 90a5821
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/logic.py
Expand Up @@ -222,7 +222,7 @@ def check_change_file(event: PullRequestUpdateEvent, settings: Settings) -> tupl

file_id, file_author = file_match.groups()
pr_author = event.pull_request.user.login
if file_author != pr_author:
if file_author.lower() != pr_author.lower():
return set_status(gh_pr, 'error', f'File "{file_match.group()}" has wrong author, expected "{pr_author}"')

if int(file_id) == event.pull_request.number:
Expand Down

0 comments on commit 90a5821

Please sign in to comment.