Fix issues with owner check
@@ -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
