The source project of this merge request has been removed.
feat: add GITLAB_GROUP override to issue/mr/variable list (#1057)
Description
This adds support for the GITLAB_GROUP
environment variable to the glab issue ls
, glab mr ls
and glab variable ls
commands.
The GITLAB_GROUP
can serve as a default group that is used when no --group
option is set.
The change was implemented by adding a new flag
package which holds the business logic for the precedence of the environment variables and the "flags" or options that can be supplied on the CLI.
Related Issues
Resolves #1057 (closed)
How has this been tested?
Tests directly with the CLI:
GITLAB_GROUP=<ID> glab issue ls
For testing the new flags package:
commands/flag> GITLAB_GROUP= GITLAB_REPO= gotestsum
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)
Edited by Andreas Gruhler