Skip to content

Commit

Permalink
Support passing options to remark-changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
vweevers committed Aug 22, 2020
1 parent 031a6ae commit 6a3923e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion options.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ module.exports = function (argv, pkg, packageOpts, files, cwd, repository) {

const plugins = { plugins: packageOpts.plugins || [] }
const fixers = { plugins: packageOpts.fixers || [] }
const changelogOptions = packageOpts.changelog || {}

return {
processor,
Expand All @@ -41,7 +42,7 @@ module.exports = function (argv, pkg, packageOpts, files, cwd, repository) {
contributors: contributors || null
}] : null,

[require('remark-changelog'), { cwd, fix, repository, version: pkg.version }],
[require('remark-changelog'), { cwd, fix, repository, version: pkg.version, ...changelogOptions }],
[require('remark-github'), { repository }],

// TODO: https://github.com/vweevers/hallmark/issues/36
Expand Down

0 comments on commit 6a3923e

Please sign in to comment.