Skip to content

Commit

Permalink
chore(changelog): Handle all commit tags
Browse files Browse the repository at this point in the history
Added to handle docs, style and chore tags.
Changed boundary regex patterns.

Fix naver#368
Close naver#369
  • Loading branch information
netil authored Aug 26, 2016
1 parent 5365ceb commit d601073
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions config/exec.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
// Filtering types
// Commit log tag filtering types for changelog
var filterType = {
feat: "Features",
fix: "Bug Fixes",
docs: "Documents",
style: "Code Styles",
refactor: "Refactorings",
test: "Test Codes"
test: "Test Codes",
chore: "Chore tasks"
};

module.exports = {
Expand Down Expand Up @@ -79,7 +82,7 @@ module.exports = {

var rxNewline = /\r?\n/g;
var rxBody = /(?:ref|fix|close)\s([egy#]|gh)-?([0-9]+)/i;
var rxSubject = new RegExp("^("+ Object.keys(filterType).join("|") +")\\s?\\(([a-z-_,\\s]+)\\)\\s*:\\s*(.*)", "i");
var rxSubject = new RegExp("^("+ Object.keys(filterType).join("|") +")\\s?\\(([\\w-,\\s]+)\\)\\s*:\\s*(.*)", "i");
var issue, subject, category, module;

for (var i = 0, el; el = result.logs.item[i]; i++) {
Expand Down Expand Up @@ -177,4 +180,4 @@ module.exports = {
},
stdout: false
}
};
};

0 comments on commit d601073

Please sign in to comment.