mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-16 17:02:18 +00:00
chore(changelog): add interface and i18n types, update tests
This adds extra types that Angular doesn't use. "interface" is for frontend related changes etc. "i18n" means internationalization and refers to translations, etc. Fixes #2622.
This commit is contained in:
parent
2a91cee0ff
commit
c781f46d53
2 changed files with 6 additions and 2 deletions
|
|
@ -13,7 +13,7 @@ var fs = require('fs');
|
|||
var util = require('util');
|
||||
|
||||
|
||||
var MAX_LENGTH = 999;
|
||||
var MAX_LENGTH = 100;
|
||||
var PATTERN = /^(?:fixup!\s*)?(\w*)(\(([\w\$\.\-\*/]*)\))?\: (.*)$/;
|
||||
var IGNORED = /^WIP\:/;
|
||||
var TYPES = {
|
||||
|
|
@ -25,7 +25,9 @@ var TYPES = {
|
|||
perf: true,
|
||||
test: true,
|
||||
chore: true,
|
||||
revert: true
|
||||
revert: true,
|
||||
'interface': true,
|
||||
i18n: true
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -34,6 +34,8 @@ describe('validate-commit-msg.js', function() {
|
|||
expect(m.validateMessage('chore(*): something')).toBe(VALID);
|
||||
expect(m.validateMessage('chore(guide/location): something')).toBe(VALID);
|
||||
expect(m.validateMessage('revert(foo): something')).toBe(VALID);
|
||||
expect(m.validateMessage('i18n(translate): something')).toBe(VALID);
|
||||
expect(m.validateMessage('interface(ui-change): something')).toBe(VALID);
|
||||
expect(errors).toEqual([]);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue