mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
chore(validate-commit-msg): recognize 'revert' as valid commit type
This commit is contained in:
parent
d859dcecea
commit
cfe13b5dac
2 changed files with 3 additions and 1 deletions
|
|
@ -22,7 +22,8 @@ var TYPES = {
|
|||
style: true,
|
||||
refactor: true,
|
||||
test: true,
|
||||
chore: true
|
||||
chore: true,
|
||||
revert: true
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ describe('validate-commit-msg.js', function() {
|
|||
expect(m.validateMessage('chore(foo-bar): something')).toBe(VALID);
|
||||
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(errors).toEqual([]);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue