di-sukharev / opencommit

Generate conventional git commit messages with AI in 1 second 🤯🔫
https://www.npmjs.com/package/opencommit
MIT License
6.15k stars 328 forks source link

[Bug]: Always used full list of emoji #354

Closed stanislavlysenko0912 closed 2 weeks ago

stanislavlysenko0912 commented 5 months ago

Opencommit Version

3.0.16

Node Version

21.7.1

NPM Version

10.5.0

What OS are you seeing the problem on?

Mac

What happened?

When using emojis, always used full list fromprompts.ts.

Expected Behavior

The use of --fgm affected the result

Current Behavior

When i just run oco command, i got:

➜  repository git:(master) ✗ oco
(node:72947) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
┌  open-commit
│
◇  1 staged files:
  src/pages/Game1/Game1Page.css
│
◇  📝 Commit message generated
│
└  Generated commit message:
——————————————————
💄 (Game1Page.css): add margin to .answer-button for improved spacing

When use with --fgm i got same:

➜  repository git:(master) ✗ oco --fgm
(node:73066) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
┌  open-commit
│
◇  1 staged files:
  src/pages/Game1/Game1Page.css
│
◇  📝 Commit message generated
│
└  Generated commit message:
——————————————————
💄 (Game1Page.css): add margin to .answer-button for improved spacing

Possible Solution

No response

Steps to Reproduce

No response

Relevant log output

No response

di-sukharev commented 3 months ago

hi @stanislavlysenko0912, what exactly did you expect to see in your case when used --fgm?

stanislavlysenko0912 commented 2 weeks ago

I wilI don't want to breed issues, so I'll close it. I wanted to somehow get rid of different emoji and use only some standard ones. It's probably not relevant now. I just switch off emoji :D