Skip to content

pre-commit hook with CLI parameters #339

Closed

Description

@ruzickap

What's the problem this feature will solve?

I would like to use + configure the commit-check as part of pre-commit hook without using the config file (commit-check.toml).

In pre-commit hooks you can usually specify the CLI arguments like:

repos:
  - repo: https://github.com/commit-check/commit-check
    rev: v2.1.2
    hooks:
      - id: commit-check
        args:
          - --subject-imperative=false

Having commit-check.toml file in every git repository with one parameter seems cumbersome:

[commit]
subject_imperative = true

Thanks for considering it...

Describe the solution you'd like

commit-check should support command line parameters (and environment variables) like:

  • CLI parameters: --subject-imperative=false
  • Env variables: CCHK_SUBJECT_IMPERATIVE=true (or maybe COMMIT_CHECK_SUBJECT_IMPERATIVE=true)

Additional context

No response

Activity

  1. added
    enhancement
    on Dec 29, 2025
  2. coderabbitai commented on Dec 29, 2025

    @coderabbitai
    Contributor

    📝 CodeRabbit Plan Mode

    Generate an implementation plan and prompts that you can use with your favorite coding agent.

    • Create Plan
    Examples

    🔗 Similar Issues

    Related Issues

    🔗 Related PRs

    #322 - feat: support commit-check without requiring ref in actions/checkout [merged]

    👤 Suggested Assignees

    🧪 Issue enrichment is currently in open beta.

    You can configure auto-planning by selecting labels in the issue_enrichment configuration.

    To disable automatic issue enrichment, add the following to your .coderabbit.yaml:

    issue_enrichment:
      auto_enrich:
        enabled: false

    💬 Have feedback or questions? Drop into our discord!

  3. self-assigned this
    on Dec 29, 2025
  4. shenxianpeng commented on Feb 1, 2026

    @shenxianpeng
    Member

    Thanks for your suggestion! This feature has been supported since v2.4.0. Any feedback is welcome.

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

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions