You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by fi...@apache.org on 2017/04/27 15:46:28 UTC

cordova-coho git commit: release note compilation: remove messages that have "(via coho)" in them. also automatically backtick references to package.json and plugin.xml

Repository: cordova-coho
Updated Branches:
  refs/heads/master ab1ca2daf -> a252290ed


release note compilation: remove messages that have "(via coho)" in them. also automatically backtick references to package.json and plugin.xml


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

Branch: refs/heads/master
Commit: a252290edaecb96f96d34301f9c1b7cc130faa67
Parents: ab1ca2d
Author: filmaj <ma...@gmail.com>
Authored: Thu Apr 27 08:46:22 2017 -0700
Committer: filmaj <ma...@gmail.com>
Committed: Thu Apr 27 08:46:22 2017 -0700

----------------------------------------------------------------------
 src/update-release-notes.js | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-coho/blob/a252290e/src/update-release-notes.js
----------------------------------------------------------------------
diff --git a/src/update-release-notes.js b/src/update-release-notes.js
index 87cebab..360471d 100644
--- a/src/update-release-notes.js
+++ b/src/update-release-notes.js
@@ -114,6 +114,7 @@ function bold(text, token) {
 }
 
 var GITHUB_CLOSE_COMMIT_MSG = /^\*\s+Close\s+\#\d+$/gi;
+var VIA_COHO_COMMIT_MSG = /\(via coho\)/gi
 
 function *createNotes(repo, newVersion, changes, overrideDate) {
     // pump changes through JIRA linkifier first through a stream pipe
@@ -133,11 +134,16 @@ function *createNotes(repo, newVersion, changes, overrideDate) {
     // remove any commit logs in the form "Close #xxx", used for closing github pull requests.
     var lines = data.split('\n');
     data = lines.filter(function(line) {
-        return !(line.match(GITHUB_CLOSE_COMMIT_MSG));
+        return !(
+           line.match(GITHUB_CLOSE_COMMIT_MSG) ||
+           line.match(VIA_COHO_COMMIT_MSG)
+        );
     }).join('\n');
 
     // some more release note linting: enclose in backticks certain tokens
     data = backtick(data, 'plugin.xml');
+    data = backtick(data, 'package.json');
+    data = backtick(data, 'config.xml');
     flagutil.computeReposFromFlag('platforms').map(function(r) { return r.repoName; }).forEach(function(platform_name) {
         data = backtick(data, platform_name);
     });


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