Skip to content

Commit

Permalink
feat: add possibility to provide custom flags to commit fetcher (#978)
Browse files Browse the repository at this point in the history
Co-authored-by: Dan Onoshko <danon0404@gmail.com>
  • Loading branch information
cakeinpanic and dangreen committed Apr 19, 2023
1 parent d0e5d59 commit 58f0887
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/conventional-recommended-bump/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ function conventionalRecommendedBump (optionsArgument, parserOptsArgument, cbArg
throw new Error('The \'options\' argument must be an object.')
}

const options = Object.assign({ ignoreReverted: true }, optionsArgument)
const options = Object.assign({
ignoreReverted: true,
gitRawCommitsOpts: {}
}, optionsArgument)

const cb = typeof parserOptsArgument === 'function' ? parserOptsArgument : cbArgument

Expand Down Expand Up @@ -73,7 +76,8 @@ function conventionalRecommendedBump (optionsArgument, parserOptsArgument, cbArg
gitRawCommits({
format: '%B%n-hash-%n%H',
from: tags[0] || '',
path: options.path
path: options.path,
...options.gitRawCommitsOpts
})
.pipe(conventionalCommitsParser(parserOpts))
.pipe(concat(data => {
Expand Down

0 comments on commit 58f0887

Please sign in to comment.