Skip to content

Commit

Permalink
chore(validate-commit-msg): recognize 'revert' as valid commit type
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorMinar committed Nov 26, 2012
1 parent d859dce commit cfe13b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion validate-commit-msg.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ var TYPES = {
style: true,
refactor: true,
test: true,
chore: true
chore: true,
revert: true
};


Expand Down
1 change: 1 addition & 0 deletions validate-commit-msg.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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([]);
});

Expand Down

0 comments on commit cfe13b5

Please sign in to comment.