Permalink
Browse files

(master) fixes manual release notes task

  • Loading branch information...
1 parent f2cc731 commit acfc2681735c8caccaa3c19474b2fff330c988db @cormacmccarthy cormacmccarthy committed Feb 24, 2016
Showing with 17 additions and 3 deletions.
  1. +3 −0 GITHUB_TOKEN.json.template
  2. +4 −2 grunt/config/prompt.js
  3. +10 −1 grunt/config/shell.js
@@ -0,0 +1,3 @@
+{
+ "token":""
+}
@@ -318,8 +318,10 @@ module.exports = function (grunt) {
}
],
then: function (answers, done) {
- if (answers['release.generatelogsmanually'] === true && answers['release.generatelogsmanuallystart'] !== '' && answers['release.generatelogsmanuallyend'] !== '') {
- grunt.log.writeln('About to generate changelogs between ' + answers['release.generatelogsmanuallystart'] + ' and ' + answers['release.generatelogsmanuallyend'] + '.');
+ grunt.config('release.generatelogsmanuallystart', answers['release.generatelogsmanuallystart']);
+ grunt.config('release.generatelogsmanuallystart', answers['release.generatelogsmanuallystart']);
+ if (answers['release.generatelogsmanually'] === true && grunt.config('release.generatelogsmanuallystart') !== '' && grunt.config('release.generatelogsmanuallyend') !== '') {
+ grunt.log.writeln('About to generate changelogs between ' + grunt.config('release.generatelogsmanuallystart') + ' and ' + grunt.config('release.generatelogsmanuallyend') + '.');
grunt.log.writeln('There will be no more output for possibly several minutes.');
grunt.log.writeln('Thank you for your patience, have an ohana mahalo kilikilikiwana day.');
grunt.log.writeln('//TODO: Insert tiki dancing nyan cat here. --jschmidt');
View
@@ -17,7 +17,16 @@ module.exports = function (grunt) {
command: 'github_changelog_generator --no-author --between-tags ' + originalVersion + ',' + getPackage().version + ' --compare-link -t ' + getGithubToken()
},
manualnotes: {
- command: 'github_changelog_generator --no-author --between-tags ' + grunt.config('release.generatelogsmanuallystart') + ',' + grunt.config('release.generatelogsmanuallyend') + ' --compare-link -t ' + getGithubToken()
+ command: function () {
+ if (grunt.config('release.generatelogsmanuallystart') === undefined || grunt.config('release.generatelogsmanuallyend') === undefined){
+ grunt.log.write('release start and end must be specified. Run task with grunt prompt:generatelogsmanually');
+ return false;
+ }else{
+ grunt.log.write('Running: github_changelog_generator --no-author --between-tags ' + grunt.config('release.generatelogsmanuallystart') + ',' + grunt.config('release.generatelogsmanuallyend') + ' --compare-link -t ');
+ grunt.log.write('Please be patient.')
+ return 'github_changelog_generator --no-author --between-tags ' + grunt.config('release.generatelogsmanuallystart') + ',' + grunt.config('release.generatelogsmanuallyend') + ' --compare-link -t ' + getGithubToken()
+ }
+ }
},
checkoutRemoteReleaseBranch: {
// this makes a local branch based on the prior prompt, such as release_{TIMESTAMP}

0 comments on commit acfc268

Please sign in to comment.