Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

support for more readme files

  • Loading branch information...
commit 466bbd8c69a9a1745498df21f9f5774d059c0fc6 1 parent add5bef
@jasonmay jasonmay authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 web/build-project-list.pl
View
4 web/build-project-list.pl
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.