case where GITLAB_PRIVATE_TOKEN isn't set
mhow2 opened this issue · 4 comments
When I run the tool without setting GITLAB_PRIVATE_TOKEN
(but with valid group and url) it returns the following:
DONE [2018-05-14 12:26:57.742102861 +02:00]: 0/0
I would mind if this message could be more detailed about what's being DONE ?
GITLAB_PRIVATE_TOKEN
is optional as it is not needed if the group is public.
In your case git-mirror
did 0/0 tasks DONE. This most probably means your group is public but there are no public projects in it.
I'm not sure what could be done here as there is no way to differentiate between a forotten GITLAB_PRIVATE_TOKEN
variable and a user who just uses a public repository.
This most probably means your group is public but there are no public projects in it.
You're right, again :)
I'm just realizing that I don't need GITLAB_PRIVATE_TOKEN
to be set at all when planning to sync public group/projects only... It is then just a matter of authenticating with git push
.
I'm not sure what could be done here as there is no way to differentiate between a forgotten GITLAB_PRIVATE_TOKEN variable and a user who just uses a public repository.
I'm unsure what is the most common use of the tool about either private or public projects.
Anyway what about displaying a notice, maybe in verbose mode ? like:
_Notice:_ GITLAB_PRIVATE_TOKEN env variable is not set - the tool is running into gitlab anonymously. Expected projects with private or internal permissions won't be seen
(Low priority)