You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#2782 introduced support for multiple scopes (e.g. feat(abc,xyz): ...), and with it changed the format of the scope selection prompt in cz-commitlint from a single-select radio list to a multiple-select checkbox list when the scope-enum rule has been configured.
However, not all projects that use the scope-enum rule wish to enable multiple scopes (to prevent duplicate entries in the changelog under distinct sub-sections, for example). At present, there's no option to configure whether commitlint (and Commitizen when using cz-commitlint) permits multiple scopes.
Expected Behavior
commitlint should introduce a new configuration option (multiple-scopes?) to configure whether multiple scopes are supported. When multiple-scopes are disabled, usage of multiple scopes should cause an error during linting, and cz-commitlint should present the user with a radio list instead of a checkbox list.
Current Behavior
There is no option to configure support for multiple scopes, so cz-commitlint always presents a checkbox list and always accepts multiple scopes if scope-enum is configured.
The text was updated successfully, but these errors were encountered:
CJKay
changed the title
Multiple scopes cannot be disabled
Multiple scopes cannot be disabled when using scope-enumDec 2, 2021
@CJKay Thanks for feedback, I'll add option to config it.
escapedcat
changed the title
Multiple scopes cannot be disabled when using scope-enum
cz-commitlint: Multiple scopes cannot be disabled when using scope-enumDec 9, 2021
#2782 introduced support for multiple scopes (e.g.
feat(abc,xyz): ...
), and with it changed the format of the scope selection prompt in cz-commitlint from a single-select radio list to a multiple-select checkbox list when thescope-enum
rule has been configured.However, not all projects that use the
scope-enum
rule wish to enable multiple scopes (to prevent duplicate entries in the changelog under distinct sub-sections, for example). At present, there's no option to configure whether commitlint (and Commitizen when using cz-commitlint) permits multiple scopes.Expected Behavior
commitlint should introduce a new configuration option (
multiple-scopes
?) to configure whether multiple scopes are supported. Whenmultiple-scopes
are disabled, usage of multiple scopes should cause an error during linting, and cz-commitlint should present the user with a radio list instead of a checkbox list.Current Behavior
There is no option to configure support for multiple scopes, so cz-commitlint always presents a checkbox list and always accepts multiple scopes if
scope-enum
is configured.The text was updated successfully, but these errors were encountered: