Skip to content

Commit

Permalink
fix: restore label filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
bengl committed May 5, 2022
1 parent 1750f8b commit 771da8e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions branch-diff.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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) => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"author": "Rod <rod@vagg.org> (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",
Expand Down

0 comments on commit 771da8e

Please sign in to comment.