Maximum number of contributors in a single request

The Github api limits results to 30 per page by default.
The maximum for a single result of contributors is 100.
This commit is contained in:
Gareth Evans
2014-07-02 13:21:44 +01:00
parent fa105ae91d
commit bfc8c51123

View File

@@ -10,7 +10,7 @@
dataType: 'jsonp',
timeout: 3000,
type: 'GET',
url: 'https://api.github.com/repos/codeguy/php-the-right-way/contributors'
url: 'https://api.github.com/repos/codeguy/php-the-right-way/contributors?per_page=100'
}).done(function (data) {
if ( data.data && data.data.length ) {
var $ul = $('<ul></ul>'), dataLength = data.data.length;