From 9852e4b9d05601d821791ae83f322be570e23c84 Mon Sep 17 00:00:00 2001 From: Edie Lemoine Date: Wed, 14 Feb 2024 11:08:13 +0100 Subject: [PATCH] fix: pass conventionalcommits preset to commit analyzer and release notes generator --- src/plugins/addCommitAnalyzerPlugin.js | 6 +++++- src/plugins/addReleaseNotesGeneratorPlugin.js | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/plugins/addCommitAnalyzerPlugin.js b/src/plugins/addCommitAnalyzerPlugin.js index efb8291..4b0b768 100644 --- a/src/plugins/addCommitAnalyzerPlugin.js +++ b/src/plugins/addCommitAnalyzerPlugin.js @@ -1,10 +1,14 @@ const {addPlugin} = require('../helpers/addPlugin'); +const defaults = { + preset: 'conventionalcommits', +}; + /** * @param {Object} options * * @returns {[string, Object]} */ -const addCommitAnalyzerPlugin = (options = {}) => addPlugin('@semantic-release/commit-analyzer', options); +const addCommitAnalyzerPlugin = (options = {}) => addPlugin('@semantic-release/commit-analyzer', options, defaults); module.exports = {addCommitAnalyzerPlugin}; diff --git a/src/plugins/addReleaseNotesGeneratorPlugin.js b/src/plugins/addReleaseNotesGeneratorPlugin.js index 6bc3864..f63859c 100644 --- a/src/plugins/addReleaseNotesGeneratorPlugin.js +++ b/src/plugins/addReleaseNotesGeneratorPlugin.js @@ -1,6 +1,7 @@ const {addPlugin} = require('../helpers/addPlugin'); const defaults = { + preset: 'conventionalcommits', presetConfig: { header: 'Changes', types: [