Skip to content

Commit

Permalink
pass previousTag to conventionalChangelog in gitRawCommitsOpts to sel…
Browse files Browse the repository at this point in the history
…ect commit messages (#47)
  • Loading branch information
whorka committed Apr 15, 2022
1 parent 8e25537 commit f13909e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -71,7 +71,7 @@ class ConventionalChangelog extends Plugin {
const options = Object.assign({}, { releaseCount }, this.options);
const context = Object.assign({ version, previousTag, currentTag }, this.options.context);
const debug = this.config.isDebug ? this.debug : null;
const gitRawCommitsOpts = Object.assign({ debug }, this.options.gitRawCommitsOpts);
const gitRawCommitsOpts = Object.assign({ debug, "from": previousTag }, this.options.gitRawCommitsOpts);
const { parserOpts, writerOpts } = options;
delete options.context;
delete options.gitRawCommitsOpts;
Expand Down

0 comments on commit f13909e

Please sign in to comment.