From 44868424f8c2a8c0094d86785e960e7bb3e63bbd Mon Sep 17 00:00:00 2001 From: Caitlin Potter Date: Wed, 27 Aug 2014 17:22:01 -0400 Subject: [PATCH] chore(compare-master-to-stable): make checks for bugfixes better The current version alerts you if a docs fix has something like "Fixes typo in foo", which is not how bugfixes are worded. --- compare-master-to-stable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compare-master-to-stable.js b/compare-master-to-stable.js index c550d03252a5..dcaf4904fd92 100755 --- a/compare-master-to-stable.js +++ b/compare-master-to-stable.js @@ -145,7 +145,7 @@ then(allInSeries(function (branch) { line = line.split(' '); var sha = line.shift(); var msg = line.join(' '); - return sha + (msg.toLowerCase().indexOf('fix') === -1 ? ' ' : ' * ') + msg; + return sha + ((/fix\([^\)]+\):/i.test(msg)) ? ' * ' : ' ') + msg; }); branch.log = log.map(function (line) { return line.substr(41);