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

Commit

Permalink
chore: 👻 decrease commit message length as per re
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed May 23, 2018
1 parent fa2496c commit c134004
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const list = [

module.exports = {
list,
maxMessageLength: 64,
maxMessageLength: 50,
minMessageLength: 3,
types
};
4 changes: 3 additions & 1 deletion src/prompt/questions.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ const questions = [
return subject;
},
leadingLabel: (answers) => `${answers.type}:`,
maxLength: MAX_SUBJECT_LENGTH,

// Minus 3 chars are for emoji + space.
maxLength: MAX_SUBJECT_LENGTH - 3,
message: 'Write a short, imperative mood description of the change:',
name: 'subject',
type: 'limitedInput',
Expand Down

0 comments on commit c134004

Please sign in to comment.