Skip to content

Commit

Permalink
link to appropriate README
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmay committed Dec 17, 2010
1 parent 98252bb commit 7c30b7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/build-project-list.pl
Expand Up @@ -62,15 +62,15 @@

$project ->{badge_has_tests} = $files{t} || $files{test} || $files{tests} ;

my $has_readme = grep exists $files{$_}, qw/
my @readmes = grep exists $files{$_}, qw/
README
README.pod
README.md
README.mkdn
README.markdown
/;

$project ->{badge_has_readme} = $has_readme ? "http://github.com/$project->{auth}/$project->{name}/blob/master/README" : undef;
$project ->{badge_has_readme} = scalar(@readmes) ? "http://github.com/$project->{auth}/$project->{name}/blob/master/$readmes[0]" : 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 7c30b7d

Please sign in to comment.