View source: R/projects_and_repos.R
gl_list_projects | R Documentation |
List projects information
gl_list_projects(...)
gl_get_projects(...)
gl_list_user_projects(user_id, ...)
gl_list_group_projects(group_id, ...)
gl_get_project(project, ...)
... |
passed on to |
user_id |
id of the user to list project from |
group_id |
id of the group to list project from |
project |
id (preferred way) or name of the project. Not repository name. |
gl_list_projects()
is an alias for gl_get_projects()
tibble of each project with corresponding information
## Not run:
set_gitlab_connection(
gitlab_url = "https://gitlab.com",
private_token = Sys.getenv("GITLAB_COM_TOKEN")
)
# List all projects
gl_get_projects(max_page = 1)
# List users projects
gl_list_user_projects(user_id = "<<user-id>>", max_page = 1)
# List group projects
gl_list_group_projects(group_id = "<<group-id>>", max_page = 1)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.