From 660a71ff39d53065c118b5262b1025daadb9641d Mon Sep 17 00:00:00 2001 From: Bryan English Date: Thu, 5 May 2022 11:57:10 -0400 Subject: [PATCH] fix: restore label filtering (#50) --- branch-diff.js | 3 +++ package.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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",