Skip to content

Commit fd97051

Browse files
committed
refactor: expose the entire commit message as raw to rules
1 parent 460b685 commit fd97051

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

source/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import {sync as parse} from 'conventional-commits-parser';
2+
import {merge} from 'lodash';
23

34
export getConfiguration from './library/get-configuration';
45
export getMessages from './library/get-messages';
@@ -16,7 +17,10 @@ export default (message, options = {}) => {
1617
}
1718
} = options;
1819

19-
const parsed = parse(message, parserOptions);
20+
const parsed = merge(
21+
{raw: message},
22+
parse(message, parserOptions)
23+
);
2024

2125
// wildcard matches skip the linting
2226
const bails = Object.entries(wildcards || {})

0 commit comments

Comments
 (0)