chore(compare-master-to-stable): make checks for bugfixes better

Prevent the script from alerting you if a docs fix has something like "Fixes typo in foo", which is
not how bugfixes are worded.

Closes #8801
This commit is contained in:
Caitlin Potter
2014-08-27 17:22:01 -04:00
parent 7a36d49533
commit c5f1ca3d91

View File

@@ -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);