mirror of
https://github.com/alexhopeoconnor/default.git
synced 2026-10-04 02:58:10 +10:00
Fix issues with owner check
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user