Skip to content

Commit

Permalink
support for more readme files
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmay committed Dec 16, 2010
1 parent add5bef commit 466bbd8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/build-project-list.pl
Expand Up @@ -61,7 +61,9 @@
}

$project ->{badge_has_tests} = $files{t} || $files{test} || $files{tests} ;
$project ->{badge_has_readme} = $files{README} ? "http://github.com/$project->{auth}/$project->{name}/blob/master/README" : undef;

my @readmes = @files{ qw/README README.pod README.md README.mkdn README.markdown/ };
$project ->{badge_has_readme} = scalar(@readmes) ? "http://github.com/$project->{auth}/$project->{name}/blob/master/README" : undef;
$project ->{badge_is_popular} = $repository->{repository}->{watchers} && $repository->{repository}->{watchers} > 50;
sleep(3) ; #We are allowed 60 calls/min = 1 api call per second, and we are wasting 3 per request so we sleep for 3 secs to make up
return;
Expand Down

0 comments on commit 466bbd8

Please sign in to comment.