gl_list_groups {gitlabr} | R Documentation |
List and manage groups
Description
List and manage groups
Usage
gl_list_groups(...)
gl_list_sub_groups(group, ...)
Arguments
... |
passed on to |
group |
The ID, name or URL-encoded path of the group |
Details
When using gl_list_sub_groups()
, if you request this list as:
An unauthenticated user, the response returns only public groups.
An authenticated user, the response returns only the groups you’re a member of and does not include public groups.
Value
tibble of each group with corresponding information
Examples
## Not run:
set_gitlab_connection(
gitlab_url = "https://gitlab.com",
private_token = Sys.getenv("GITLAB_COM_TOKEN")
)
# List all groups
gl_list_groups(max_page = 1)
# List sub-groups of a group
gl_list_sub_groups(group_id = "<<group-id>>", max_page = 1)
## End(Not run)
[Package gitlabr version 2.1.0 Index]