Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
cz-customizable with emoji
'use strict';
module.exports = {
types: [
{
value: 'WIP',
name : '💪 WIP: Work in progress'
},
{
value: 'feat',
name : '✨ feat: A new feature'
},
{
value: 'fix',
name : '🐞 fix: A bug fix'
},
{
value: 'refactor',
name : '🛠 refactor: A code change that neither fixes a bug nor adds a feature'
},
{
value: 'docs',
name : '📚 docs: Documentation only changes'
},
{
value: 'test',
name : '🏁 test: Add missing tests or correcting existing tests'
},
{
value: 'chore',
name : '🗯 chore: Changes that don\'t modify src or test files. Such as updating build tasks, package manager'
},
{
value: 'style',
name : '💅 style: Code Style, Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)'
},
{
value: 'revert',
name : '⏪ revert: Revert to a commit'
}
],
scopes: [],
allowCustomScopes: true,
allowBreakingChanges: ["feat", "fix"]
};
@leohxj

This comment has been minimized.

Copy link
Owner Author

@leohxj leohxj commented Nov 16, 2017

.czrc

{ "path": "cz-customizable" }

确保项目路径中的任意层级找的到 .cz-config.js 即可.

@leohxj

This comment has been minimized.

Copy link
Owner Author

@leohxj leohxj commented Jan 7, 2018

@ZhengXiaowei

This comment has been minimized.

Copy link

@ZhengXiaowei ZhengXiaowei commented Jun 20, 2019

自定义adapter无效是因为什么 配置了path 也写了.cz-config.js了 .czrc和.cz-config.js是同级 都在~/目录下

@leohxj

This comment has been minimized.

Copy link
Owner Author

@leohxj leohxj commented Jun 20, 2019

自定义adapter无效是因为什么 配置了path 也写了.cz-config.js了 .czrc和.cz-config.js是同级 都在~/目录下

包装对了么。
yarn install commitizen cz-customizable -g

@ZhengXiaowei

This comment has been minimized.

Copy link

@ZhengXiaowei ZhengXiaowei commented Jun 21, 2019

customizable

ok了已经,之前不小心有在项目里装一个,没有移除 所以出现的这个问题

@cyj424

This comment has been minimized.

Copy link

@cyj424 cyj424 commented Jun 9, 2021

可以自定义在type前加一个字段吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment