Skip to content

Commit 660a71f

Browse files
authored
fix: restore label filtering (#50)
1 parent a87c38f commit 660a71f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

branch-diff.js

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import pkgtoId from 'pkg-to-id'
1212
import minimist from 'minimist'
1313
import { isReleaseCommit } from 'changelog-maker/groups'
1414
import { processCommits } from 'changelog-maker/process-commits'
15+
import { collectCommitLabels } from 'changelog-maker/collect-commit-labels'
1516
import gitexec from 'gitexec'
1617

1718
const pipeline = promisify(_pipeline)
@@ -74,6 +75,8 @@ async function diffCollected (options, branchCommits) {
7475

7576
let list = branchCommits[1].filter((commit) => !isInList(commit))
7677

78+
await collectCommitLabels(list)
79+
7780
if (options.excludeLabels.length > 0) {
7881
list = list.filter((commit) => {
7982
return !commit.labels || !commit.labels.some((label) => {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"author": "Rod <[email protected]> (http://r.va.gg/)",
1616
"license": "MIT",
1717
"dependencies": {
18-
"changelog-maker": "^3.0.0",
18+
"changelog-maker": "^3.1.0",
1919
"commit-stream": "^1.1.0",
2020
"gitexec": "^2.0.1",
2121
"minimist": "^1.2.5",

0 commit comments

Comments
 (0)