IonicaBizau / repository-downloader

:open_file_folder: Downloads all your repositories from BitBucket and GitHub locally
MIT License
94 stars 31 forks source link

Downloading private repository information? #29

Closed johnhayesio closed 3 years ago

johnhayesio commented 3 years ago

I have looked to see how to do this, but either haven't found out how or it doesn't exist. My stats are only showing for public repos it seems within global-activity. Is there a way to get private repos also?

johnhayesio commented 3 years ago

I figured it out. The download link must be user/repos and not users//repos and it can only be done with an access token that has full repo authorization.

johnhayesio commented 3 years ago

Now a new problem. Although it will download all repos, the total count shown is incorrect. For instance, if you look at my Github, I have 1,869 commits in the last year. Git-stats shows that I have made 2,374 in the last year. I also have Git Streaks for mac installed and it shows the same. This is taking into account my private repos also.

IonicaBizau commented 3 years ago

The GitHub token should have access to the private repositories, and then the private repositories will be downloaded.

I am not sure, but maybe Git Stats counts the merge commits too...