def get_common_kwargs(gitlab_repo):
    """
    Prepare ommon parameters for the request such as port, https
    and authentication headers
    """
    headers = {'Private-Token': gitlab_repo.token} if gitlab_repo.token else None
    return dict(port=443, https=True, headers=headers)