Skip to content

Commit

Permalink
Commitlint (#300)
Browse files Browse the repository at this point in the history
* chore(commitizen): prettify output

* chore(commitizen): change new_feature to feat
  • Loading branch information
dhruvdutt authored and evenstensberg committed Mar 1, 2018
1 parent 514a695 commit c852fd8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 17 deletions.
30 changes: 14 additions & 16 deletions .cz-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,17 @@
'use strict';

module.exports = {
allowBreakingChanges: ['ast'],
allowCustomScopes: true,
scopes: [],
types: [
{value: 'new_feature', name: 'new_feature: A new feature'}, {
value: 'ast',
name: 'ast: init, migrate, add, etc'
},
{value: 'tests', name: 'tests: Tests, jest, binTestCases etc'},
{value: 'docs', name: 'docs: Documentation'},
{value: 'deps', name: 'deps: Dependency bumps only'},
{value: 'cli', name: 'cli: core CLI things'},
{value: 'misc', name: 'misc: Other formats like tweaks and such'},
{value: 'chore', name: 'chore: Updating docs, linting etc'},
]
};
allowBreakingChanges: ["ast"],
allowCustomScopes: true,
scopes: [],
types: [
{ value: "feat", name: "feat: A new feature" },
{ value: "ast", name: "ast: init, migrate, add, etc" },
{ value: "tests", name: "tests: Tests, jest, binTestCases, etc" },
{ value: "docs", name: "docs: Documentation" },
{ value: "deps", name: "deps: Dependency bumps only" },
{ value: "cli", name: "cli: Core CLI things" },
{ value: "misc", name: "misc: Other formats like tweaks and such" },
{ value: "chore", name: "chore: Updating docs, linting, etc" },
]
};
2 changes: 1 addition & 1 deletion build/changelog-generator/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const writerOpts = {
commit.type = "tests";
} else if (commit.type === "cli") {
commit.type = "CLI";
} else if (commit.type === "new_feature") {
} else if (commit.type === "new_feature" || commit.type === "feat") {
commit.type = "New Features";
}

Expand Down

0 comments on commit c852fd8

Please sign in to comment.