From 80843438718b7cafba99fd33e5de49406244c477 Mon Sep 17 00:00:00 2001 From: Ludeeus Date: Fri, 31 Jul 2020 16:15:45 +0000 Subject: [PATCH] Fix issues with owner check --- scripts/check/owner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/check/owner.py b/scripts/check/owner.py index a36e9f3..e40d8ff 100644 --- a/scripts/check/owner.py +++ b/scripts/check/owner.py @@ -14,7 +14,7 @@ async def check(): event = get_event() actor = event["pull_request"]["user"]["login"] - if repo.split("/")[0] == actor: + if repo.split("/")[0].lower() == actor.lower(): print(f"'{actor}' is the owner of '{repo}'") return @@ -37,7 +37,7 @@ async def check(): exit(f"::error::'{actor}' is not a contributor to '{repo}'") if [x["contributions"] for x in _sorted if x["login"] == actor].pop() > ( - _top / 2 + _top / 3 ): print(f"'{actor}' is a major contributor to '{repo}'") return