You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2017/01/17 23:47:14 UTC

cordova-coho git commit: updated issue with update-release-notes

Repository: cordova-coho
Updated Branches:
  refs/heads/master 9cea0230d -> 1479ad79a


updated issue with update-release-notes


Project: http://git-wip-us.apache.org/repos/asf/cordova-coho/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-coho/commit/1479ad79
Tree: http://git-wip-us.apache.org/repos/asf/cordova-coho/tree/1479ad79
Diff: http://git-wip-us.apache.org/repos/asf/cordova-coho/diff/1479ad79

Branch: refs/heads/master
Commit: 1479ad79aff24045f16d3f020a5f308e0d417999
Parents: 9cea023
Author: Steve Gill <st...@gmail.com>
Authored: Tue Jan 17 15:47:06 2017 -0800
Committer: Steve Gill <st...@gmail.com>
Committed: Tue Jan 17 15:47:06 2017 -0800

----------------------------------------------------------------------
 src/update-release-notes.js | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-coho/blob/1479ad79/src/update-release-notes.js
----------------------------------------------------------------------
diff --git a/src/update-release-notes.js b/src/update-release-notes.js
index 8398d53..0d9918a 100644
--- a/src/update-release-notes.js
+++ b/src/update-release-notes.js
@@ -47,9 +47,10 @@ module.exports = function*() {
 
     var repos = flagutil.computeReposFromFlag(argv.r, {includeModules: true});
 
-    var cmd = executil.ARGS('git log --topo-order --no-merges');
-    cmd.push(['--pretty=format:* %s']);
+    
     yield repoutil.forEachRepo(repos, function*(repo) {
+        var cmd = executil.ARGS('git log --topo-order --no-merges');
+        cmd.push(['--pretty=format:* %s']);
         var fromTag, toTag, hasOneTag;
         hasOneTag = false;
         if (argv['last-two-tags']) {
@@ -88,6 +89,7 @@ module.exports = function*() {
         if (output) {
             var newVersion;
             if (toTag === 'master') {
+                delete require.cache[path.join(process.cwd(), 'package.json')];
                 newVersion = require(path.join(process.cwd(), 'package.json')).version;
             } else {
                 newVersion = toTag;
@@ -104,7 +106,7 @@ module.exports = function*() {
             }
             data = data.substr(0, pos) + "### " + newVersion + ' (' + date[1] + ' ' + date[2] + ', ' + date[3] + ')\n' + output + '\n\n' + data.substr(pos);
             fs.writeFileSync(relNotesFile, data, {encoding: 'utf8'});
-            linkify.file(relNotesFile);
+            return linkify.file(relNotesFile);
         }
     });
 };


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org