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