Created
December 6, 2010 01:40
-
-
Save 525c1e21-bd67-4735-ac99-b4b0e5262290/729701 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
getForks 'schacon', 'ruby-git', (callback) -> | |
count = 0 | |
forkedRepoCount = 0 | |
target = 0 | |
for fork in callback.network | |
createdDate = new Date(fork.created_at) | |
pushedDate = new Date(fork.pushed_at) | |
if createdDate > pushedDate | |
count += 1 | |
forkers[fork.owner] = 0 | |
getRepos fork.owner, (repos) -> | |
for repo in repos.repositories | |
if repo.fork | |
forkers[fork.owner]++ | |
target++ | |
if target == callback.network.length | |
console.log 'done' | |
sys.puts count + " unchanged forks on ruby-git" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment