Skip to content

feat: add `repo list` command

Kerri Miller requested to merge github/fork/cfebs/revive-repo-list into trunk

Created by: cfebs

Description

Revive glab repo list PR https://github.com/profclems/glab/pull/684 and implement suggestions from https://github.com/profclems/glab/pull/684#discussion_r614600110

@olearycrew If it's preferable to just keep https://github.com/profclems/glab/pull/684 open, please feel free to cherry pick and i'll close this.

  • Add filters for all, owned, member and starred
    • The "all" filter is a little weird on public gitlab
  • Default filter is owned
  • Added ssh url to output (maybe a minimal flag would be nice that only spit out ssh urls)

Related Issue

Repos list issue: https://github.com/profclems/glab/issues/671 Existing PR: https://github.com/profclems/glab/pull/684

How Has This Been Tested?

Only tested with my own repos, and I don't have a gitlab self hosted environment to test in.

make
./bin/glab repo list --all
./bin/glab repo list --starred
./bin/glab repo list --mine

Screenshots (if appropriate)

❯ ./bin/glab repo list
Showing 25 of 25 projects (Page 1 of 1)

cfebs/patchnotes              git@gitlab.com:cfebs/patchnotes.git
cfebs/strife                  git@gitlab.com:cfebs/strife.git
cfebs/pmbootstrap             git@gitlab.com:cfebs/pmbootstrap.git             Sophisticated chroot/build/flash tool to develop and install postmarketOS
cfebs/crystal-stun            git@gitlab.com:cfebs/crystal-stun.git
cfebs/lowcall                 git@gitlab.com:cfebs/lowcall.git                 low requirement (no signaling server) webrtc call
cfebs/macaroni                git@gitlab.com:cfebs/macaroni.git
cfebs/foremanager             git@gitlab.com:cfebs/foremanager.git

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)

Merge request reports