Skip to content

Commit

Permalink
Add more whitelisted verbs
Browse files Browse the repository at this point in the history
  • Loading branch information
rtsao committed Jan 10, 2018
1 parent 74f3a83 commit 9a87818
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions __tests__/validate-title.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ test('valid commits pass', () => {
'Restructure some arbitrary thing',
'Resolve some arbitrary thing',
'Upgrade some arbitrary thing',
'Pin Dockerfile node:8.9.0 image digest',
'Configure Renovate',
];

valid.forEach(msg => {
Expand Down
10 changes: 6 additions & 4 deletions validate-title.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,20 @@ function validateFirstTerm(parsed) {
// The following verbs starting with `re` are categorized as singular nouns
// See: https://github.com/nlp-compromise/compromise/issues/412
const nounWhitelist = new Set([
'configure',
'expose',
'implement',
'introduce',
'repeat',
'pin',
'rebuild',
'reconcile',
'record',
'redefine',
'recover',
'redefine',
'repeat',
'reset',
'restructure',
'resolve',
'expose',
'restructure',
'upgrade',
]);

Expand Down

0 comments on commit 9a87818

Please sign in to comment.