kenshoo/react-multi-select

View on GitHub
semantic_release/analyzeCommits.js

Summary

Maintainability
A
0 mins
Test Coverage
function isBreakingChange(commit) {
    return commit.message.toLowerCase().includes('breaking changes');
}

module.exports = function (pluginConfig, {commits}, callback) {
    const breakingChanges = commits.some((commit) => isBreakingChange(commit));

    callback(null, breakingChanges ? 'minor' : 'patch');
};