2
1
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2023-12-13 21:00:40 +01:00

Merge pull request #4156 from novaugust/iss4130

Update top-gh-contribs to get contributors within last 90 days
This commit is contained in:
Hannah Wolfe 2014-09-25 08:58:53 +01:00
commit bb23fdaeb6
2 changed files with 4 additions and 3 deletions

View file

@ -945,7 +945,8 @@ var _ = require('lodash'),
// `grunt buildAboutPage --force`
grunt.registerTask('buildAboutPage', 'Compile assets for the About Ghost page', function () {
var done = this.async(),
templatePath = 'core/client/templates/-contributors.hbs';
templatePath = 'core/client/templates/-contributors.hbs',
ninetyDaysAgo = Date.now() - (1000 * 60 * 60 * 24 * 90);
if (fs.existsSync(templatePath) && !grunt.option('force')) {
grunt.log.writeln('Contributors template already exists.');
@ -957,7 +958,7 @@ var _ = require('lodash'),
getTopContribs({
user: 'tryghost',
repo: 'ghost',
releaseTag: '0.4.2',
releaseDate: ninetyDaysAgo,
count: 20
}).then(function makeContributorTemplate(contributors) {
var contributorTemplate = '<li>\n\t<a href="<%githubUrl%>" title="<%name%>">\n' +

View file

@ -98,6 +98,6 @@
"should": "~4.0.4",
"sinon": "~1.10.3",
"supertest": "~0.13.0",
"top-gh-contribs": "0.0.1"
"top-gh-contribs": "0.0.2"
}
}