Skip to content

Instantly share code, notes, and snippets.

@leohxj
Last active May 19, 2023 03:49
Show Gist options
  • Star 24 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save leohxj/7bc928f60bfa46a3856ddf7c0f91ab98 to your computer and use it in GitHub Desktop.
Save leohxj/7bc928f60bfa46a3856ddf7c0f91ab98 to your computer and use it in GitHub Desktop.
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
Copy link
Author

leohxj commented Jan 7, 2018

@ZhengXiaowei
Copy link

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

@leohxj
Copy link
Author

leohxj commented Jun 20, 2019

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

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

@ZhengXiaowei
Copy link

customizable

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

@cyj424
Copy link

cyj424 commented Jun 9, 2021

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

@KeyToLove
Copy link

怎么让生成的commit也携带emoji呢,尝试修改value和commitlint.config.js中的type-enum使其一一对应,但是没有生效。

@cMing1997
Copy link

怎么让生成的commit也携带emoji呢,尝试修改value和commitlint.config.js中的type-enum使其一一对应,但是没有生效。

是使用的 字体图标嘛?

@leohxj
Copy link
Author

leohxj commented Sep 25, 2022

就是 emoji 字符, 没有特殊字体

@zhaoqianguo
Copy link

image

大佬 这个怎么去掉呢?强迫症👻

@leohxj
Copy link
Author

leohxj commented May 3, 2023

image

大佬 这个怎么去掉呢?强迫症👻

scoope 输入的时候, 留空?
或者配置中 allowCustomScopes �设置 false 看看

@WCHENGE
Copy link

WCHENGE commented May 19, 2023

「配置中 allowCustomScopes 设置 false 」无效

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