diff options
| author | Igor Minar | 2012-11-11 12:06:05 +0100 | 
|---|---|---|
| committer | Igor Minar | 2012-11-26 21:05:38 +0100 | 
| commit | cfe13b5dac3d1260400bb55194f2bc27169fd360 (patch) | |
| tree | 3a673ded7aeeadf1d21c80412fc4bc2cd2a4e4c4 | |
| parent | d859dcecea654d1d858cd756c6efb8435a453197 (diff) | |
| download | angular.js-cfe13b5dac3d1260400bb55194f2bc27169fd360.tar.bz2 | |
chore(validate-commit-msg): recognize 'revert' as valid commit type
| -rwxr-xr-x | validate-commit-msg.js | 3 | ||||
| -rw-r--r-- | validate-commit-msg.spec.js | 1 | 
2 files changed, 3 insertions, 1 deletions
| diff --git a/validate-commit-msg.js b/validate-commit-msg.js index dad507d1..7e8df6be 100755 --- a/validate-commit-msg.js +++ b/validate-commit-msg.js @@ -22,7 +22,8 @@ var TYPES = {    style: true,    refactor: true,    test: true, -  chore: true +  chore: true, +  revert: true  }; diff --git a/validate-commit-msg.spec.js b/validate-commit-msg.spec.js index 7483a9b0..4d153dc0 100644 --- a/validate-commit-msg.spec.js +++ b/validate-commit-msg.spec.js @@ -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([]);      }); | 
