glab repo list: --group with --include-subgroups does not work with --all
Checklist
-
I'm using the latest version of the extension (Run glab --version)- Extension version: glab 1.78.3 (b234b22a)
-
Operating system and version: Ubuntu 20.04 -
Gitlab.com or self-managed instance? self-managed -
GitLab version (if self-managed): 18.6 -
I have performed glab auth statusto check for authentication issues -
Run the command in debug mode (like DEBUG=true glab mr list) and attach any useful output
Summary
glab repo list --group <group> --all --include-subgroups does not include repos in subgroups in it's output.
Steps to reproduce
Run this command on a group that has projects in one of its subgroups. The project will not show.
glab repo list --group <group> --all --include-subgroups
When not using --all but using --member instead this will show the projects in the subgroups
glab repo list --group <group> --member --include-subgroups
What is the current bug behavior?
Does not return projects in subgroups when --group --include-subgroups --all is used
What is the expected correct behavior?
Should return projects in subgroups when --group --include-subgroups --all is used
Possible fixes
^ this if block should be moved outside of it's parent if (if !opts.filterAll)