carloscuesta / carloscuesta/gitmoji-cli

Commiting from project subfolder does not work

Open
#1,196 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
4.8k
Forks
212
PR merge metrics
No merged PRs in 30d

Description

### Discussion

Hello,

I want to use gitmoji-cli in my project. I set up the gitmoji config in package.json file.
When I commit from project root, where package.json file is located, everything works as expected.

However, when commiting from a subfolder of the project (for example, src folder), it does not find config and use the default config.

Am I doing something wrong or is this feature not available?

Thank you

### Validations

- [X] Follow our [Code of Conduct](https://github.com/carloscuesta/gitmoji-cli/blob/master/CODE_OF_CONDUCT.md)
- [X] Read the [Contributing Guide](https://github.com/carloscuesta/gitmoji-cli/blob/master/.github/CONTRIBUTING.md).
- [X] Check that there isn't already an issue requesting the same feature.

Contributor guide

Open the contributing guide

Research direction

Reproduce the behavior from the project root and from the src subfolder, using the configuration in package.json as the reference. Trace how gitmoji-cli discovers that configuration and verify that committing from the subfolder uses the project configuration rather than the default configuration.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.