-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
more fine-tuning of the commit analyzer
With a small modification to the regular expression that matches the commit message header we should be able to force the first word to be captured as the type.
- Loading branch information
Showing
2 changed files
with
8 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// Change default header pattern matcher to match headers with no colon. | ||
// This will make the first __word__ in free-form commit message headers the __type__. | ||
// With this non-empty type we can do a negated match (the type being anything but | ||
// one of the other keywords with associated release rules). | ||
module.exports = { | ||
"headerPattern": /^(\w*)(?:\(([\w\$\.\-\* ]*)\))?\:? (.*)$/ | ||
}; |