def _get_user_id()

in asfyaml/feature/github/deployment_environments.py [0:0]


def _get_user_id(self: ASFGitHubFeature, username: Any) -> int:
    if isinstance(username, int):
        return username
    user = self.gh.get_user(username)
    return user.id