diff --git a/branch-diff.js b/branch-diff.js index 1a6cad0..c96c727 100755 --- a/branch-diff.js +++ b/branch-diff.js @@ -12,6 +12,7 @@ import pkgtoId from 'pkg-to-id' import minimist from 'minimist' import { isReleaseCommit } from 'changelog-maker/groups' import { processCommits } from 'changelog-maker/process-commits' +import { collectCommitLabels } from 'changelog-maker/collect-commit-labels' import gitexec from 'gitexec' const pipeline = promisify(_pipeline) @@ -74,6 +75,8 @@ async function diffCollected (options, branchCommits) { let list = branchCommits[1].filter((commit) => !isInList(commit)) + await collectCommitLabels(list) + if (options.excludeLabels.length > 0) { list = list.filter((commit) => { return !commit.labels || !commit.labels.some((label) => { diff --git a/package.json b/package.json index da3f8f7..f0f84c2 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "author": "Rod (http://r.va.gg/)", "license": "MIT", "dependencies": { - "changelog-maker": "^3.0.0", + "changelog-maker": "^3.1.0", "commit-stream": "^1.1.0", "gitexec": "^2.0.1", "minimist": "^1.2.5",