From bfc8c51123350806538d127cb98e440a11ebdfe9 Mon Sep 17 00:00:00 2001 From: Gareth Evans Date: Wed, 2 Jul 2014 13:21:44 +0100 Subject: [PATCH] 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. --- scripts/setup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/setup.js b/scripts/setup.js index bab8251..819d71f 100644 --- a/scripts/setup.js +++ b/scripts/setup.js @@ -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 = $(''), dataLength = data.data.length;