Skip to content

Commit

Permalink
fix: pass conventionalcommits preset to commit analyzer and release n…
Browse files Browse the repository at this point in the history
…otes generator
  • Loading branch information
EdieLemoine committed Feb 14, 2024
1 parent 4442126 commit 9852e4b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/plugins/addCommitAnalyzerPlugin.js
Original file line number Diff line number Diff line change
@@ -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};
1 change: 1 addition & 0 deletions src/plugins/addReleaseNotesGeneratorPlugin.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const {addPlugin} = require('../helpers/addPlugin');

const defaults = {
preset: 'conventionalcommits',
presetConfig: {
header: 'Changes',
types: [
Expand Down

0 comments on commit 9852e4b

Please sign in to comment.