Learn R Programming

gitlabr (version 2.0.1)

gl_repository: Access to repository files in GitLab

Description

Access to repository files in GitLab

For gl_file_exists dots are passed on to gl_list_files() and GitLab API call

Get a file from a GitLab repository

Usage

gl_repository(project, req = c("tree"), ref = get_main(), ...)

gl_list_files(project, ref = get_main(), ...)

gl_file_exists(project, file_path, ref, ...)

gl_get_file( project, file_path, ref = get_main(), to_char = TRUE, api_version = 4, ... )

Value

Tibble of files available in the branch with descriptive variables.

Arguments

project

name or id of project (not repository!)

req

request to perform on repository (everything after '/repository/' in GitLab API, as vector or part of URL)

ref

name of ref (commit branch or tag)

...

passed on to gitlab() API call

file_path

path to file

to_char

flag if output should be converted to char; otherwise it is of class raw

api_version

a switch to force deprecated GitLab API v3 behavior. See details section "API version" of gl_connection()