Skip to content

Commit

Permalink
make members check script output easier to interpret (#402)
Browse files Browse the repository at this point in the history
Note: this does not affect the website content
  • Loading branch information
raboof authored Aug 29, 2024
1 parent c56ead2 commit 8d60e0d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions members_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,19 @@ def main():
name = parts.pop(0).strip()
if section == 'members':
if not availid in members:
print(f"Not listed in members: {availid} {name} Status: {ex_members.get(availid, 'Unknown')}")
if availid in ex_members:
status = f"is listed in Whimsy with status '{ex_members.get(availid)}'"
else:
status = "was not found in Whimsy"
errors += 1
print(f"'{availid}' ({name}) is listed in the 'members' section of `content/foundation/members.md`, but {status}")
elif section == 'emeritus':
if availid != '?' and not availid in ex_members:
if availid in members:
status = 'ASF Member'
status = "is listed in Whimsy as an ASF Member"
else:
status = 'Unknown'
print(f"Not listed in ex_members: {availid} {name} Status: {status}")
status = "was not found in Whimsy"
print(f"'{availid}' ({name}) is listed in the 'emeritus' section of `content/foundation/members.md`, but {status}")
errors += 1
if errors > 0:
print(f"Detected {errors} error(s). ")
Expand Down

0 comments on commit 8d60e0d

Please sign in to comment.