mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 14:03:48 +03:00
Update top-gh-contribs to get contributors within last 90 days
Closes #4130
This commit is contained in:
parent
2b2586a459
commit
d4bf80430c
@ -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' +
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user