Skip to content

Commit

Permalink
fix(fix syntax in gulpfile): fix syntax in gulpfile
Browse files Browse the repository at this point in the history
  • Loading branch information
imbhargav5 committed Apr 21, 2021
1 parent 92f84a3 commit 0945b62
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ gulp.task('changelog', function () {
...context.commitGroups.map(({ commits, ...rest }) => ({
...rest,
commits: commits.filter((commit) => {
return !IGNORE_COMMIT_PATTERS.some(
(pattern) => commit.header?.includes(pattern) || false
return !IGNORE_COMMIT_PATTERS.some((pattern) =>
typeof commit.header === 'string'
? commit.header.includes(pattern)
: false
);
}),
})),
Expand Down

0 comments on commit 0945b62

Please sign in to comment.