Skip to content

Commit

Permalink
Update check_membership.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cgundy authored Dec 3, 2024
1 parent 0b715c1 commit b6826c3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions reusable_workflows/check_membership/check_membership.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,15 @@ def is_member_of_org(gh: github3.login, org: str, user: str) -> bool:
return gh.organization(org).is_member(user)


def is_approved_member():
if is_member_of_org():
def is_approved_member(gh: github3.login, org: str, user: str):
if is_member_of_org(gh, org, user):
print(f"{user} is member of {org} and can contribute.")
return True
if is_approved_bot():
if is_approved_bot(user):
print(f"{user} is an approved bot and can contribute.")
return True
return False
else:
return False


def main() -> None:
Expand Down

0 comments on commit b6826c3

Please # to comment.