def get_public_email(user):
    """
    Helper function to return public user email to send emails
    """
    if len(user.get_all_user_emails()) > 0:
        return next((email for email in user.get_all_user_emails() if "noreply.github.com" not in email), None)