Group Override with GITLAB_GROUP Environment Variable
Problem to solve
As a glab user, I usually work on a sub-tree of GitLab, a nested structure of groups and sub-groups.
Therefore, I would be glad if I could easily specify my preferred default group (i.e., the root group) where I do most of the work.
For the (default) repository (--repo option), a similar solution exists by setting the GITLAB_REPO environment variable.
Proposal
Therefore, I propose to set GITLAB_GROUP variable (or similar) which could be the default group that is used for these commands (if no --group is given):
glab issue lsglab mr lsglab variable ls
This will speed up listing of issues in a certain sub-tree of the GitLab group hierarchy, because it is not required to specify the --group option for repeated list commands.
Edited by Andreas Gruhler