Skip to content
This repository has been archived by the owner on Mar 11, 2021. It is now read-only.

Commit

Permalink
feat(index): Restrict title without end period
Browse files Browse the repository at this point in the history
This commit filters and edits potential commit titles so that any number
of trailing periods are removed before creating the commit title.
  • Loading branch information
erictleung committed Jun 10, 2017
1 parent 39d6ea0 commit ccfd211
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,12 @@ module.exports = {
name: 'subject',
message: dedent`
Write a short, imperative tense description of the change:
`
`,
filter: function(input) {
return new Promise((resolve, reject) => {
resolve(input.replace(/\.*$/, ""));
});
}
}, {
type: 'input',
name: 'body',
Expand Down

0 comments on commit ccfd211

Please sign in to comment.