mona-actions / gh-gitlab-stats

GH CLI extension to pull statistics on GitLab repository and server metadata
MIT License
1 stars 0 forks source link

failure when tool encounters project with no git repo #17

Open robandpdx opened 1 year ago

robandpdx commented 1 year ago

I am seeing the following error when the tool encounters a project in gitlab that has no git repo.

Fetching namespace/my-project-with-no-git-repo MetaData (0s)2023/10/25 17:58:31 Failed to list commits: &{0x14000241440 0 0 0 0 0 0} GET https://gitlab.teracloud.ninja/api/v4/projects/810/repository/commits: 404 {message: 404 Repository Not Found}
amenocal commented 1 year ago

@robandpdx I'm not seeing this error in my tests. When you say gitlab has no git repo you mean like an empty repo ? Just created but not branches / no commits ?

robandpdx commented 1 year ago

@robandpdx I'm not seeing this error in my tests. When you say gitlab has no git repo you mean like an empty repo ? Just created but not branches / no commits ?

I mean no git repo, not an empty one. I was not able to figure out how to create a project without a git repo, but apparently it can be done.