Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
chore(compare-master-to-stable): make checks for bugfixes better
Browse files Browse the repository at this point in the history
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
  • Loading branch information
caitp committed Aug 29, 2014
1 parent 7a36d49 commit c5f1ca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compare-master-to-stable.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c5f1ca3

Please sign in to comment.