Skip to content

Commit

Permalink
🐛 fix: Fixed type error (#58)
Browse files Browse the repository at this point in the history
* 🔖 v1.4.5 [skip ci]

https://github.com/momocow/semantic-release-gitmoji/releases/tag/v1.4.5

* 🔖 v1.5.0 [skip ci]

https://github.com/momocow/semantic-release-gitmoji/releases/tag/v1.5.0

* 🔖 v1.6.0 [skip ci]

https://github.com/momocow/semantic-release-gitmoji/releases/tag/v1.6.0

* 🐛 fix: Fixed type error

Co-authored-by: 牛牛 <momocow.me@gmail.com>
Co-authored-by: 電ちゃん <inazuma.love.225@gmail.com>
  • Loading branch information
3 people committed Jan 24, 2023
1 parent a9b4044 commit 15d3e91
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/helper/parse-commits.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function parseGitmoji ({ subject = '', message = '', body = '' } = {}, issues =
if (!matched || matched.index !== 0) return null

const gitmoji = matched[0]
const semver = gitmojis.find(matchEmoji(gitmoji)).semver || 'other'
const semver = gitmojis.find(matchEmoji(gitmoji))?.semver || 'other'
subject = subject.replace(new RegExp('^' + gitmoji), '')

return { subject, message: subject + '\n\n' + body, gitmoji, semver }
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@
"lib",
"index.js"
]
}
}

0 comments on commit 15d3e91

Please sign in to comment.