From 06213bc22174c7c5843b9e20aded9b3a4aae95bc Mon Sep 17 00:00:00 2001 From: Pavel910 Date: Wed, 31 Oct 2018 17:05:55 +0100 Subject: [PATCH] Update commits analyzer import. --- scripts/release/plugins/analyzeCommits/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/release/plugins/analyzeCommits/index.js b/scripts/release/plugins/analyzeCommits/index.js index fb107b5f6c9..d6d2c09b116 100644 --- a/scripts/release/plugins/analyzeCommits/index.js +++ b/scripts/release/plugins/analyzeCommits/index.js @@ -1,6 +1,6 @@ const semver = require("semver"); const { template } = require("lodash"); -const commitAnalyzer = require("@semantic-release/commit-analyzer"); +const { analyzeCommits } = require("@semantic-release/commit-analyzer"); const getCommits = require("./getCommits"); const getLastReleaseFactory = require("./getLastRelease"); @@ -31,7 +31,7 @@ module.exports = (pluginConfig = {}) => { params["lastRelease"] = lastRelease; params["commits"] = commits; - const type = await commitAnalyzer( + const type = await analyzeCommits( pluginConfig.commitAnalyzer || {}, Object.assign({ logger, commits }) );