Skip to content
Closed
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
14 changes: 12 additions & 2 deletions src/pyosmeta/cli/update_review_teams.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"""

import os
import warnings
from datetime import datetime

from pydantic import ValidationError
Expand Down Expand Up @@ -87,9 +88,18 @@ def main():

else:
# Else we are processing editors, reviewers...
gh_user = get_clean_user(
getattr(packages[pkg_name], issue_role)["github_username"]

# Get the Github username if possible.
raw_user = getattr(packages[pkg_name], issue_role).get(
"github_username"
)
if raw_user is None:
warnings.warn(
f"No github_username found for {pkg_name}!",
stacklevel=2,
)
continue
gh_user = get_clean_user(raw_user)

if gh_user not in contribs.keys():
# If they aren't already in contribs, add them
Expand Down