From cfe13b5dac3d1260400bb55194f2bc27169fd360 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Sun, 11 Nov 2012 12:06:05 +0100 Subject: [PATCH] chore(validate-commit-msg): recognize 'revert' as valid commit type --- validate-commit-msg.js | 3 ++- validate-commit-msg.spec.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/validate-commit-msg.js b/validate-commit-msg.js index dad507d14953..7e8df6be5a13 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 7483a9b03de4..4d153dc06170 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([]); });