commitlint icon indicating copy to clipboard operation
commitlint copied to clipboard

feat: Do you want to be able to specify the path of the configuration file when using it

Open deepbytelab opened this issue 7 months ago • 3 comments

Expected Behavior

In my work, there are many projects under development, and each project requires configuration. The system provides a configuration file path that can be specified to facilitate unified management by developers. Thank you

@commitlint/prompt-cli @commitlint/prompt

Current Behavior

No response

Affected packages

  • [x] cli
  • [ ] core
  • [x] prompt
  • [ ] config-angular

Possible Solution

No response

Context

No response

deepbytelab avatar May 06 '25 01:05 deepbytelab

No sure if I understood you right. Are you looking for this?:

-g, --config         path to the config file; result code 9 if config is missing

https://commitlint.js.org/reference/cli.html

escapedcat avatar May 06 '25 03:05 escapedcat

@escapedcat Thank you for your reply. I tried using this configuration, but only @commitlint/cli will take effect. @ commitlint/prompt cli and @Commitlint/prompt has no effect

deepbytelab avatar May 07 '25 09:05 deepbytelab

Prompt is not in a good state anymore.
Maybe this works better: https://github.com/conventional-changelog/commitlint/tree/master/%40commitlint/cz-commitlint

escapedcat avatar May 07 '25 10:05 escapedcat