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') }) })