Skip to content
This repository has been archived by the owner on Sep 18, 2017. It is now read-only.

Commit

Permalink
chore(standard): Comply with standard
Browse files Browse the repository at this point in the history
  • Loading branch information
ariporad committed Aug 20, 2015
1 parent 108d2a0 commit a1d4558
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit a1d4558

Please sign in to comment.