Exemplo n.º 1
0
def gitlab_root_folder(*args, **kwargs):
    """View function returning the root container for a GitLab repo. In
    contrast to other add-ons, this is exposed via the API for GitLab to
    accommodate switching between branches and commits.

    """
    node_settings = kwargs['node_addon']
    auth = kwargs['auth']
    data = request.args.to_dict()

    return gitlab_hgrid_data(node_settings, auth=auth, **data)
Exemplo n.º 2
0
def gitlab_root_folder(*args, **kwargs):
    """View function returning the root container for a GitLab repo. In
    contrast to other add-ons, this is exposed via the API for GitLab to
    accommodate switching between branches and commits.

    """
    node_settings = kwargs['node_addon']
    auth = kwargs['auth']
    data = request.args.to_dict()

    return gitlab_hgrid_data(node_settings, auth=auth, **data)