Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make members check script output easier to interpret #402

Merged
merged 1 commit into from
Aug 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading