diff --git a/src/index.js b/src/index.js index 97c4b2d..2806959 100644 --- a/src/index.js +++ b/src/index.js @@ -3,10 +3,10 @@ const { parseRawCommit } = require('conventional-changelog/lib/git') module.exports = function (pluginConfig, {commit}, cb) { commit = parseRawCommit(`${commit.hash}\n${commit.message}`) - if (!commit) return cb(null, null) - if (commit.breaks.length) return cb(null, 'major') + if (!commit) return cb(null, null) + if (commit.breaks.length) return cb(null, 'major') if (commit.type === 'feat') return cb(null, 'minor') - if (commit.type === 'fix') return cb(null, 'patch') + if (commit.type === 'fix') return cb(null, 'patch') cb(null, null) }