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