Skip to content

Commit

Permalink
fix: fix internal flag ref filterParent → firstParent
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Jul 31, 2020
1 parent f85f298 commit 8c7400f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/createInlinePluginCreator.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ function createInlinePluginCreator(packages, multiContext, synchronizer, flags)
* @internal
*/
const analyzeCommits = async (pluginOptions, context) => {
const filterParentBranch = flags.filterParent ? context.branch.name : undefined;
const firstParentBranch = flags.firstParent ? context.branch.name : undefined;

// Filter commits by directory.
commits = await getCommitsFiltered(cwd, dir, context.lastRelease.gitHead, filterParentBranch);
commits = await getCommitsFiltered(cwd, dir, context.lastRelease.gitHead, firstParentBranch);

// Set context.commits so analyzeCommits does correct analysis.
context.commits = commits;
Expand Down

0 comments on commit 8c7400f

Please sign in to comment.