DEV Community

loading...

I wonder how GitHub's trending algorithm works. Any clue ?

🦁 Yvonnick FRIN
Developer Web Fullstack at @Pix. I'm a @NantesJS meetup co-organizer on my spare time.
・1 min read

In the past the trending algorithm was simple. The number of trending repositories was limited and your repository had to earn more stars than the last one in list to get into it.

Since GitHub changed their algorithm I can't figure out how it works. Someone has an idea ?


Answered by Ankita Singhal: She found a post on github.community with an answer from Lee Dohm community manager at GitHub.

Discussion (3)

Collapse
ankitasinghal profile image
Ankita Singhal

I had the same question in mind when I stumbled across this thread on github community.

Github does not reveal the exact algorithm but does mention that there is an additional criteria apart from stars to decide the trending repos.

Link : github.community/t5/How-to-use-Git....

Collapse
yvonnickfrin profile image
🦁 Yvonnick FRIN Author

Didn't know about github.community, thanks! Ok, it answers the question. @Franck Abgrall had the same issue as the author of the post yesterday having a repository gaining around 100 stars in a day and a pull request but didn't get into the trending page. Now I understand why, Thank you Ankita 🙂

Collapse
ankitasinghal profile image
Ankita Singhal

I am glad it helped :)

Cheers!!!