carloscuesta / gitmoji-cli

A gitmoji interactive cli tool for using emojis on commits. 💻
https://www.npmjs.com/package/gitmoji-cli
MIT License
4.64k stars 207 forks source link

Predefined list of scopes #780

Open stalinkay opened 2 years ago

stalinkay commented 2 years ago

Hello @carloscuesta!

There's currently no way to include a list of preset scopes that a team member can select so they use predetermined scopes. A great example of this is commitizen.

carloscuesta commented 2 years ago

Hey! Thanks for opening an issue, what do you mean by scopes?

Commitizen has a selectable option for the type of the commit that in gitmoji would be the emoji, the scope can't be predefined as it can be anything related with the use-case of your commit/application

stalinkay commented 2 years ago

@carloscuesta You could add it under gitmoji --config. This would enable a user/teams to set a predefined list of acceptable scopes. This is very useful in monorepos, for instance.

It looks like commitizen doesn't support it but it's supported by cz-customizable, a commitizen adapter.

carloscuesta commented 2 years ago

Hey!

Thanks for the clarification! Now I understand the feature 😊

I think it can be a great addition to the cli. Would you like to work on a PR for this? @stalinkay

stalinkay commented 2 years ago

@carloscuesta You are most welcome.

I'm not currently able due to time constraints. Hopefully, someone will hop on.

robin-ln commented 4 months ago

Hello ! can i have a review on https://github.com/carloscuesta/gitmoji-cli/pull/1324 🙏 @carloscuesta

carloscuesta commented 4 months ago

Hey @Robin-Ln I will review this as soon as I can. Most likely in 2-3 days

robin-ln commented 2 months ago

Hey @Robin-Ln I will review this as soon as I can. Most likely in 2-3 days

Re ! can you review my changes on https://github.com/carloscuesta/gitmoji-cli/pull/1324 🙏 @carloscuesta