Skip to content

feat(repo): add option to limit list in one group

Description

Add a --group (or -g) option to glab repo list to filter the list of repositories listed only to the ones in a specified group.

Related Issues

Resolves #1240 (closed) Resolves #958 (closed)

How has this been tested?

  1. Unit tests have been updated to make sure that the 2 APIs needed (Search group and list group projects) are correctly called.
  2. I've ran make test to make sure that no regression have been spotted anywhere else.
  3. I've tested this on my organization's hierarchy to list only the repository in a 3rd level subgroup.
  4. I've also made the diff between the result without the flag and the result of the command prior to my change on my organization, no regression spotted on my side.

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation
  • Chore (Related to CI or Packaging to platforms)
  • Test gap
Edited by Kai Armstrong

Merge request reports