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
{{ message }}
Repository navigation
pre-commit hook does not check/support custom types (defined in config.commitizen.types) #481
Triage from #1964: Still in wait-for-response since 2022. Could anyone confirm if this still reproduces on 4.15.1? cz check should respect the active rule's schema_pattern, which for cz_conventional_commits is built from the configured types. Closing as stale unless we get a fresh repro.
cz check --message "wip: work in progress" → fails (exit 14, as expected — wip isn't a standard type)
Test B — cz_customize with schema_pattern = "^(feat|fix|wip|chore): (.*)$":
cz check --message "wip: work in progress" → Commit validation: successful! (exit 0)
So cz check does respect custom types defined via cz_customize's schema_pattern.
Verdict: FIXED / NOT REPRODUCIBLE. The original 2022 report didn't include enough config detail to determine exactly what they tried, but on current master, both stock and customized commit-type validation work as expected. Closing-eligible unless someone can produce a fresh repro.
Closing as fixed / not reproducible: cz_customizeschema_pattern is honored by cz check. See verification comment above. Please reopen with a fresh repro on 4.15.1+ if needed.
Activity
Lee-W commentedon Aug 21, 2022
Hi @stavros-mobal , I'm a bit confused. We do not have module
config.commitizen.types. Could you please clarify a bit more?bearomorphism commentedon May 9, 2026
Triage from #1964: Still in
wait-for-responsesince 2022. Could anyone confirm if this still reproduces on 4.15.1?cz checkshould respect the active rule'sschema_pattern, which forcz_conventional_commitsis built from the configuredtypes. Closing as stale unless we get a fresh repro.bearomorphism commentedon May 9, 2026
Verification update (re #1964)
Reproduced against current master (4.15.1) — and good news: this works correctly now.
Test A —
cz_conventional_commits:cz check --message "feat: test"→Commit validation: successful!(exit 0)cz check --message "wip: work in progress"→ fails (exit 14, as expected —wipisn't a standard type)Test B —
cz_customizewithschema_pattern = "^(feat|fix|wip|chore): (.*)$":cz check --message "wip: work in progress"→Commit validation: successful!(exit 0)So
cz checkdoes respect custom types defined viacz_customize'sschema_pattern.Verdict: FIXED / NOT REPRODUCIBLE. The original 2022 report didn't include enough config detail to determine exactly what they tried, but on current master, both stock and customized commit-type validation work as expected. Closing-eligible unless someone can produce a fresh repro.
bearomorphism commentedon May 9, 2026
Closing as fixed / not reproducible:
cz_customizeschema_patternis honored bycz check. See verification comment above. Please reopen with a fresh repro on 4.15.1+ if needed.