active-forks icon indicating copy to clipboard operation
active-forks copied to clipboard

Commits behind\ahead\identical

Open floatas opened this issue 6 years ago • 22 comments

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

floatas avatar Nov 03 '18 21:11 floatas

@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.

techgaun avatar Nov 04 '18 00:11 techgaun

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.

floatas avatar Nov 04 '18 09:11 floatas

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.

countingpine avatar Dec 05 '18 19:12 countingpine

@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

techgaun avatar Dec 05 '18 20:12 techgaun

any news about this task?

cagnulein avatar Jul 26 '19 06:07 cagnulein

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

techgaun avatar Jul 26 '19 06:07 techgaun

  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

oriadam avatar Aug 19 '19 11:08 oriadam

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

floatas avatar Aug 21 '19 10:08 floatas

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!

floatas avatar Oct 01 '19 17:10 floatas

@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.

techgaun avatar Oct 01 '19 18:10 techgaun

How did this PR go?

Justinzobel avatar May 14 '20 04:05 Justinzobel

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!

morrowsend avatar Jun 27 '20 18:06 morrowsend

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.

ridvanaltun avatar Oct 13 '20 13:10 ridvanaltun

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) 🙈

floatas avatar Oct 13 '20 13:10 floatas

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.

ridvanaltun avatar Oct 13 '20 17:10 ridvanaltun

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

KyleKing avatar Oct 13 '20 19:10 KyleKing

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

vesper8 avatar Feb 16 '21 09:02 vesper8

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

RoneoOrg avatar Oct 10 '21 14:10 RoneoOrg

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

abitrolly avatar Oct 10 '21 18:10 abitrolly

Thanks @abitrolly !

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

RoneoOrg avatar Oct 10 '21 19:10 RoneoOrg

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

abitrolly avatar Oct 10 '21 19:10 abitrolly