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

Commit

Permalink
feat(index): Capitalize git commit title
Browse files Browse the repository at this point in the history
  • Loading branch information
erictleung committed Jun 3, 2017
1 parent e97a047 commit 0ed12d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ module.exports = {
let scope = answers.scope.trim();
scope = scope ? '(' + answers.scope.trim() + ')' : '';
// Hard limit this subject line
const subject = answers.subject.trim().slice(0, maxLineWidth);
const title = answers.subject.trim().slice(0, maxLineWidth);
const subject = title.charAt(0).toUpperCase() + title.substr(1);
const head = `${answers.type}${scope}: ${subject}`;

// Wrap these lines at 100 characters
Expand Down

0 comments on commit 0ed12d5

Please sign in to comment.