Fix issues with owner check

This commit is contained in:
Ludeeus
2020-07-31 16:15:45 +00:00
parent dd219f1a9d
commit 8084343871
+2 -2
View File
@@ -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