Reputation: 52198
Is there a way to view repository traffic for all repositories on your account at the same time? (without creating your own custom dashboard using the Github API). It would be very convenient. I suspect a bash script might do this without too much effort (e.g. get all repo names, get the traffic/stars stats for each repo in the list). But I want to be sure something obvious doesn't already exist before writing anything myself
Upvotes: 1
Views: 469
Reputation: 57
The accepted answer mentions two helpful repositories that get the job done. An alternative method is to view your repositories' traffic in the GitHub website's existing GUI, while still saving you the effort of clicking on each repo one at a time, by using the GitHub API to fetch a list of all your repositories and then use Python's webbrowser
to open each of these links in a browser interface.
Coming across this use-case multiple times, I created exactly such a tool, which requires minimal configuration and setup.
However, my tool does not support traffic history more than 2 weeks old. For this purpose, you can use a web app named repohistory, which supports up to two repositories at the time of writing this answer.
Upvotes: 0
Reputation: 1323095
I am not ware of any native dashboard that would aggregate multiple GitHub repositories into one convenient view.
You would therefore have to rely on third-party scripts, such as, for example, nchah/github-traffic-stats
(Python)
Get statistics on web traffic to your GitHub repositories.
Since it is limited to the last two weeks, you might have to record those statitics over time (example: Microsoft/GitHubTelemetryParsor
)
Upvotes: 2