Closed ruzickap closed 5 months ago
Does the same thing happen when you remove the config file and out the repos as CLI arguments?
If I remove the config file ~/.multi-gitter/config
it is not working too:
$ multi-gitter status --repo my_username/my_repo_1
Error: either the --token flag or the GITHUB_TOKEN/GITLAB_TOKEN/GITEA_TOKEN/BITBUCKET_SERVER_TOKEN environment variable has to be set
Usage:
...
It only works properly when I set the GH Token as parameter:
$ multi-gitter status --token "${GITHUB_TOKEN}" --repo my_username/my_repo_1
my_username/my_repo_1 #160: Merged
Thank you...
I can't repro this. And looking at the code, it doesn't make sense that it would not read the variable if it's exported.
Are you sure it is exported as you write in the initial post. Not just set in the shell?
# exporting
export GITHUB_TOKEN="github_pat_11......."
# just setting it in the current shell
GITHUB_TOKEN="github_pat_11......."
Thank you...
You are right - the export
helped...
This is needed in my environment:
export GITHUB_TOKEN="github_pat_11......."
Thanks again
Describe the bug I have my
GITHUB_TOKEN
properly exported as environment variable, butmulti-gitter
ignores the value.To Reproduce
My config file:
My GitHub Token:
multi-gitter
is asking to set the token - but it is already set as environment variableGITHUB_TOKEN
:If I run the command + specify the
GITHUB_TOKEN
as cli parameter - the it is working like expected:Expected behavior
multi-gitter
should useGITHUB_TOKEN
environment variable whenever it is defined.Additional context
Version: