List and manage groups

gl_list_groups(...)

gl_list_sub_groups(group, ...)

Arguments

...

passed on to gitlab()

group

The ID, name or URL-encoded path of the group

Value

tibble of each group with corresponding information

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.

Examples

if (FALSE) {
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)
}