From 90a5821eef685912d8999fd0c61d569a7331235d Mon Sep 17 00:00:00 2001 From: Samuel Colvin Date: Thu, 11 Aug 2022 11:52:50 +0100 Subject: [PATCH] case insensitive author comparison, fix pydantic/pydantic#4354 --- src/logic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logic.py b/src/logic.py index c5a1384..452941a 100755 --- a/src/logic.py +++ b/src/logic.py @@ -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: