From 7de685794748b0bb88f1fc2b80365cea6dcf9592 Mon Sep 17 00:00:00 2001 From: Alessandro Zanardi Date: Wed, 30 Mar 2016 02:06:10 +0200 Subject: [PATCH] fix: allow any code change to generate at least a "patch" version --- src/index.js | 2 +- test/specs/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 7a3382b..3ad591c 100644 --- a/src/index.js +++ b/src/index.js @@ -17,7 +17,7 @@ module.exports = function (pluginConfig, {commits}, cb) { if (commit.type === 'feat') type = 'minor' - if (!type && commit.type === 'fix') type = 'patch' + if (!type) type = 'patch' return true }) diff --git a/test/specs/index.js b/test/specs/index.js index 3eb5757..a5b1e97 100644 --- a/test/specs/index.js +++ b/test/specs/index.js @@ -13,7 +13,7 @@ test('derive version number from commits', (t) => { }] }, (err, type) => { tt.error(err) - tt.is(type, null) + tt.is(type, 'patch') }) })