Skip to content

Commit

Permalink
chore: skip preparation if master contain only chore commits (#657)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeetiss committed Feb 4, 2020
1 parent 406b94d commit b58e1a0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ship.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ module.exports = {
testCommandBeforeRelease: () => 'echo "No test before release"', // TODO: remove later
slack: {
releaseStart: null // TODO: remove later
},
// skip preparation if master contain only `chore` commits
shouldPrepare: ({ releaseType, commitNumbersPerType }) => {
const { fix = 0 } = commitNumbersPerType;
if (releaseType === "patch" && fix === 0) {
return false;
}
return true;
}
};

Expand Down

0 comments on commit b58e1a0

Please sign in to comment.