From e0e39aa1603d22cac41d4ad1a167292577baf73a Mon Sep 17 00:00:00 2001 From: Jason Williams Date: Thu, 5 Feb 2015 18:52:53 +0000 Subject: [PATCH] Retry API request when buildAboutPage gets 202 No Issue. - top-gh-contribs@1.0.0. - Enable 'retry' option which will retry the GitHub API request in the event it receives a status of 202 (retry momentarily). --- Gruntfile.js | 3 ++- package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 02716f02d8..e19d6650bc 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -1043,7 +1043,8 @@ var _ = require('lodash'), repo: 'ghost', oauthKey: oauthKey, releaseDate: ninetyDaysAgo, - count: 20 + count: 20, + retry: true }) ).then(function (results) { var contributors = results[1], diff --git a/package.json b/package.json index c19b07889d..db76922bd9 100644 --- a/package.json +++ b/package.json @@ -102,6 +102,6 @@ "sinon": "~1.12.2", "supertest": "~0.15.0", "testem": "^0.6.23", - "top-gh-contribs": "0.0.6" + "top-gh-contribs": "^1.0.0" } }