gl_list_files {gitlabr}R Documentation

List of files in a folder

Description

List of files in a folder

Usage

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

Arguments

project

id (preferred way) or name of the project. Not repository name.

path

path of the folder

ref

name of ref (commit branch or tag). Default to 'main'.

...

passed on to gitlab() API call

Value

Tibble of files available in the branch with descriptive variables.

Examples

## Not run: 
# Set GitLab connection for examples
set_gitlab_connection(
  gitlab_url = "https://gitlab.com",
  private_token = Sys.getenv("GITLAB_COM_TOKEN")
)

gl_list_files(project = "<<your-project-id>>", path = "<<path-to-folder>>")

## End(Not run)

[Package gitlabr version 2.1.0 Index]