Skip to content

Commit

Permalink
fix(.changelogrc.js): correct improper array access
Browse files Browse the repository at this point in the history
  • Loading branch information
Xunnamius committed Jan 2, 2021
1 parent 7fa3849 commit 0cb2645
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .changelogrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ module.exports = {

if (commit) {
if (fakeFix) {
commit.type = ADDITIONAL_RELEASE_RULES[commit.type].title;
commit.type = ADDITIONAL_RELEASE_RULES.filter(
(r) => r.type == commit.type
).title;
debug(`::transform commit type set to custom title "${commit.type}"`);
} else commit.type = sentenceCase(commit.type);

Expand Down

0 comments on commit 0cb2645

Please sign in to comment.