conventional-changelog / conventional-changelog/commitlint

prompt-cli does not work with custom config file paths

Open
#340 5 comments 1 reaction 0 assignees View on GitHub
feature help wanted
Dominant language
TypeScript
Stars
18.7k
Forks
970
Avg merge
7h 33m
Merged PRs (30d)
49

Description

Following #100, there is no way to run `prompt-cli` with a specific config file path. It just assumes the default which is `commitlint.config.js` under the repository's root.

## Expected Behavior
Either:
1. `npm run commit --config `
2. `COMMITLINT_CONFIG=/path/to/config.js npm run commit`
3. `{ config: { '@commitlint/prompt-cli': { config: '/path/to/config.js' } } }` in package.json

## Current Behavior
`prompt-cli` runs with no customizations in place (no type/scope enums loaded etc.)

## Affected packages
* [ ] cli
* [ ] core
* [x] prompt
* [ ] config-angular

## Your Environment

| Executable | Version |
| ---: | :--- |
| `commitlint --version` | 6.2.0 |
| `git --version` | 2.17.0 |
| `node --version` | 8.9.0 |

Contributor guide

Open the contributing guide

Research direction

Start by tracing the prompt package's prompt-cli configuration loading, using issue #100 as context for the existing behavior. Verify how a custom config path is passed to prompt-cli and confirm that configured type and scope enums are loaded instead of the default-only behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.