techgaun / active-forks

Find active github forks of a repo https://git.io/vSnrC
https://techgaun.github.io/active-forks/index.html
2.28k stars 294 forks source link

Commits behind\ahead\identical #17

Open floatas opened 5 years ago

floatas commented 5 years ago

Currently this project shows active forks based on forks\fallows, but I'm interested more in development side. It would be great to see fork status. Additional column with number of commits behind\ahead\identical. It looks like this would require new request for each fork. Maybe checkbox could be added 'Show fork status' which would show additional column ?

e.g: https://api.github.com/repos/justcla/EasyMotion/compare/master...DomasM:master

techgaun commented 5 years ago

@floatas this is a fair point. I would be open for a PR with such an option. Would you be interested in working on this? Or, anyone else? Otherwise, I will try to get this in next weekend.

floatas commented 5 years ago

I'm not sure If I will have time next week. We can this this up for grabs, who wants to implement this could assign himself or leave comment.

countingpine commented 5 years ago

This sounds like it would be really useful - an 'ahead' column would give you a good idea which branches have actually been worked on independently by the forker. These are the only interesting ones!

A problem I can see is that you presumably have to choose a branch on the fork before deciding whether it's ahead or not.

techgaun commented 5 years ago

@countingpine I think we could start with choosing a default branch of the fork as the branch to compare with. I have not looked it yet but I will take a look coming weekend and try to get this working

cagnulein commented 5 years ago

any news about this task?

techgaun commented 5 years ago

Surely I forgot about this. I am not available this weekend but next weekend, I will try to knock this one. Putting on reminder but happy to take in any prs

oriadam commented 5 years ago
  1. this comment looks helpful but I have no access to the link attached there: https://developer.github.com/v3/repos/commits/#compare-two-commits

Anyone can access this link and copy the content somewhere, so we/i could help with this feature?

  1. this fork added a column "commits this year" if it helps anyone: KyleKing/active-forks example: https://kyleking.me/active-forks/?q=techgaun/active-forks
floatas commented 5 years ago

@oriadam I copied html source to pastebin: https://pste.eu/p/R5Ux.html

floatas commented 4 years ago

A lot of time passed since I created this issue, but little to no work has been done. I created simple implementation which makes request for each fork to get info. Starting point on which we can improve. Maybe some hacktoberfest hackers want to help on this!

techgaun commented 4 years ago

@floatas you're awesome. thanks for the PR. I for sure have been caught up with real world job and I apologize for not getting this done. I will take a look at your PR soon. Appreciate your work.

Justinzobel commented 4 years ago

How did this PR go?

morrowsend commented 4 years ago

I'm interested in an update on the PR for this too. The more I use this tool the more I find that would be a useful feature for sure!

ridvanaltun commented 3 years ago

If you made any progress can you open a pull request with [WIP] prefix within title? I think we might help to the this feature. I think it is most needing feature.

floatas commented 3 years ago

You could use this project to investigate active forks on this repository 😜 if I remember correctly one fork has this implemented (or almost, don't remember correctly) 🙈

ridvanaltun commented 3 years ago

You could use this project to investigate active forks on this repository 😜 if I remember correctly one fork has this implemented (or almost, don't remember correctly) 🙈

I found two actually 😂

KyleKing/active-forks lukaszmn/active-forks

KyleKing's solution fast but some repos show error in year column some reason. Lukaszmn's solution super slow but It shows each fork how much ahead and behind and besides shows how much can i make request the Github API.

KyleKing commented 3 years ago

The changes in my fork were merged in https://github.com/techgaun/active-forks/pull/4, so it hasn’t been updated since

vesper8 commented 3 years ago

@techgaun any chance you can add this much-desired feature to this awesome project soon please?

RoneoOrg commented 2 years ago

A related implementation is available (Source code)

a GitHub token is asked, then a sortable table with last commit date and a diff is displayed. Click on this diff to see the commit names. The GitHub Quota is displayed too

abitrolly commented 2 years ago

https://stackoverflow.com/questions/54868988/how-to-determine-which-forks-on-github-are-ahead - here GitHub HTML is parsed to fetch the info, and there is an implementation in Go https://github.com/hbbio/forkizard

RoneoOrg commented 2 years ago

Thanks @abitrolly !

I discovered this bookmarklet thanks to your references, and it provides a good way to discover active forks without additional installation

abitrolly commented 2 years ago

Go solution didn't work for me, because it seems that GitHub updates this info dynamically https://github.com/hbbio/forkizard/issues/7