Get sorted github repository search results by “some” attribute(the number of forks or stars)

后端 未结 2 488
傲寒
傲寒 2020-12-19 15:41

How to get github search results sorted by the number of forks or stars?

I need this feature to demonstrate which project is the hottest among those that target the

相关标签:
2条回答
  • 2020-12-19 15:53

    GitHub supports the "Lucene query syntax".

    See @VonC's answer here:

    GitHub advanced search default behaviour

    and

    http://www.lucenetutorial.com/lucene-query-syntax.html

    But Lucene doesn't support ordering.

    0 讨论(0)
  • 2020-12-19 16:02

    Update of the Update (February 2013, source "Sortable Stars"):

    Starting today you can sort your starred repositories by when you starred them or when the repositories were last updated.

    enter image description here

    So the sort criteria is now visible.


    Update January 2013 (source: "A whole new code search")

    Searching by number of forks seems now to return a result ordered by number of forks

    django- forks:>500

    This is confirmed by the blog post "Sorting through Search Results" (January 31, 2013):

    If you're searching through repositories, you can sort by stars, forks, or recently-updated


    (Original answer: Sept. 2012)

    I don't see any sort option in GitHub advanced search.

    The forks: filter is to indicate a precise number of fork, like this query would display the 4 repos with 100 forks for "django-". But that doesn't display all repo above 100 forks, and that doesn't sort them.

    0 讨论(0)
提交回复
热议问题