Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intuitive way to view most active fork in GitHub [closed]

This is a network graph of a GitHub repository:

github fork graph

There is no indication of which fork has the most stars and watchers. The commits may be simple updates to documentation files, for example.

Is there a way to evaluate forks in GitHub to determine which ones are more active/popular?

like image 634
Hanxue Avatar asked Sep 21 '13 20:09

Hanxue


People also ask

How do I find most popular forks on GitHub?

Find the most popular fork on GitHub. GitPop3 helps you choose a fork when a project goes unmaintained. It allows you to sort forks by "Stars", "Forks" or "Commits" count. See GitPop2 for the same tool using backend tech.

How do I see who forked me on GitHub?

Clicking the number of forks shows you the full network. From there you can click "members" to see who forked the repo.


1 Answers

I don't know of one, but you could probably write one easily given the breadth of API wrappers out there. An example with github3.py would be

import github3  r = github3.repository('owner', 'repo_name') most_watched = next(r.iter_forks(sort='watchers', number=1)) 

As best I know, you cannot sort on stars and repositories don't have that information returned to them. You could, however, sort on forks but you would have to do it by hand.

The above example is two lines but you can achieve the same thing like so:

curl https://api.github.com/repos/owner/repo_name/forks?sort=watchers 

That won't limit how many results you get, though.

like image 146
Ian Stapleton Cordasco Avatar answered Sep 20 '22 15:09

Ian Stapleton Cordasco