Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c4cb023

Browse files
committedApr 13, 2022
restore label filtering
1 parent 1750f8b commit c4cb023

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎branch-diff.js

+4
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) => {
@@ -157,6 +160,7 @@ async function main () {
157160
list = list.filter((commit) => !isReleaseCommit(commit.summary))
158161
}
159162

163+
160164
await processCommits(argv, ghId, list)
161165
}
162166

0 commit comments

Comments
 (0)
Please sign in to comment.