Skip to content

Commit

Permalink
style(release-rules): Change parameter name for consistency πŸ’Ž
Browse files Browse the repository at this point in the history
  • Loading branch information
pvdlg committed Aug 24, 2017
1 parent 8ef112a commit 4e56b54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/release-rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ import {types} from './types';
module.exports = [{breaking: true, release: 'major'}].concat(
transform(
types,
(commitTypes, value, type) => {
(releaseRules, value, type) => {
if (value.release) {
if (typeof value.release === 'string') {
commitTypes.push({type, release: value.release});
releaseRules.push({type, release: value.release});
}

if (value.release.release) {
commitTypes.push(Object.assign({type}, value.release));
releaseRules.push(Object.assign({type}, value.release));
}
}
},
Expand Down

0 comments on commit 4e56b54

Please sign in to comment.