Skip to content

Commit

Permalink
refactor: use DM's convention
Browse files Browse the repository at this point in the history
remove scopes, and change types

BREAKING CHANGE:
removed scopes
  • Loading branch information
azukaar committed Jun 15, 2017
1 parent 122a508 commit 744124d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 18 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
"path": "./lib"
}
}
}
27 changes: 10 additions & 17 deletions src/make-default-questions.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,16 @@ module.exports = (allPackages, changedPackages) => ([
name: 'type',
message: 'Select the type of change that you\'re committing:',
choices: [
{value: 'feat', name: 'feat: ✨ A new feature (note: this will indicate a release)'},
{value: 'fix', name: 'fix: 🛠 A bug fix (note: this will indicate a release)'},
{value: 'docs', name: 'docs: Documentation only changes'},
{value: 'style', name: 'style: Changes that do not affect the meaning of the code\n (white-space, formatting, missing semi-colons, etc)'},
{value: 'refactor', name: 'refactor: A code change that neither fixes a bug nor adds a feature'},
{value: 'perf', name: 'perf: A code change that improves performance'},
{value: 'test', name: 'test: Adding missing tests'},
{value: 'chore', name: 'chore: Changes to the build process or auxiliary tools\n and libraries such as documentation generation'},
{value: 'revert', name: 'revert: Revert to a commit'},
{value: 'WIP', name: 'WIP: Work in progress'}
{value: 'feat', name: 'feat: A new feature'},
{value: 'fix', name: 'fix: A bug fix'},
{value: 'docs', name: 'docs: Documentation only changes'},
{value: 'style', name: 'style: Changes that do not affect the meaning of the code\n (white-space, formatting, missing semi-colons, etc)'},
{value: 'refactor', name: 'refactor: A code change that neither fixes a bug or adds a feature'},
{value: 'perf', name: 'perf: A code change that improves performance'},
{value: 'test', name: 'test: Adding missing tests'},
{value: 'chore', name: 'chore: Changes to the build process or auxiliary tools\n and libraries such as documentation generation'}
],
},
{
type: 'input',
name: 'scope',
message: 'Denote the scope of this change:',
},
{
type: 'input',
name: 'subject',
Expand All @@ -37,7 +30,7 @@ module.exports = (allPackages, changedPackages) => ([
{
type: 'input',
name: 'body',
message: 'Provide a longer description of the change (optional). Use "|" to break new line:\n'
message: 'Provide a longer description of the change (optional).\n'
},
{
type: 'input',
Expand All @@ -47,7 +40,7 @@ module.exports = (allPackages, changedPackages) => ([
{
type: 'input',
name: 'footer',
message: 'List any ISSUES CLOSED by this change (optional). E.g.: #31, #34:\n',
message: 'Reference any task that this commit closes:\n Issues:\n',
},
{
type: 'checkbox',
Expand Down

0 comments on commit 744124d

Please sign in to comment.