UNPKG

276 BJavaScriptView Raw
1const simpleParser = require('simple-commit-message')
2const R = require('ramda')
3
4function parseCommit (commit) {
5 const semantic = simpleParser.parse(commit.message)
6 const result = R.clone(commit)
7 result.semver = semantic
8 return result
9}
10
11module.exports = parseCommit