def serialize_user(user):
    return {'email': {'email': user.username},
            'email_type': 'html',
            'merge_vars': {
                'fname': user.given_name,
                'lname': user.family_name}
            }
Releases all contents of a staging repository to a release repository which this staging repository targets.
dataset/ETHPy150Open CenterForOpenScience/osf.io/scripts/sync_email.py/serialize_user--crossover with--dataset/ETHPy150Open stardust85/repositorytools/repositorytools/lib/repository.py/NexusProRepositoryClient.release_staging_repo