Zhengqbbb / cz-git

cz-git | czg 🛠️ DX first and more engineered, lightweight, customizable, standard output format Commitizen adapter and CLI
https://cz-git.qbb.sh
MIT License
1.05k stars 39 forks source link

[Bug report] 设置 default-scope 后,没有select选项,只有placeholder #119

Closed laterdayi closed 1 year ago

laterdayi commented 1 year ago

✅ Checklist

📄 System Info

windows

🔎 Description

设置 default-scope 后,没有select选项,只有placeholder

🔗 Reproduction link / repo:

No response

laterdayi commented 1 year ago

图片

Zhengqbbb commented 1 year ago

发配置,发需求。你这个配置肯定 跳过(skip) scopes

Zhengqbbb commented 1 year ago

如果可以的话发 Discussions 非必要不要发 BUG ISSUE

laterdayi commented 1 year ago

图片 看到 default-scope 是可以选择的 但配置过后 只有placeholder

laterdayi commented 1 year ago

好的 下次会发 Discussions

Zhengqbbb commented 1 year ago

https://cz-git.qbb.sh/zh/config/engineer#scopes 定义 scopes 数组,作为选择项 https://cz-git.qbb.sh/zh/config/show#defaultscope 如果 defaultscope 匹配到选择项中的值会自动置顶

Zhengqbbb commented 1 year ago
scopes: [
        'hello',
        'world',
        'foo',
        'bar'
    ],
defaultScope: 'foo',
laterdayi commented 1 year ago

好的,谢谢

Zhengqbbb commented 1 year ago

给个例子哈 https://github.com/Tencent/tdesign-vue-next/blob/149559620240b59b0d82f3280ed5c27eb7f7dba4/commitlint.config.js#L23-L28

laterdayi commented 1 year ago

谢谢,现在可以了, 看文档我以为只需要defaultScope,就是默认的scope

Zhengqbbb commented 1 year ago

谢谢,现在可以了, 看文档我以为只需要defaultScope,就是默认的scope

好 后面我加多一些描述,感谢反馈