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

[Feature]: fast commit #122

Open multipliedtwice opened 1 year ago

multipliedtwice commented 1 year ago

Description

Great library. Can we have something like oc-fast that automatically answers all questions as yes and pushes immediately?

Suggested Solution

oc-fast

Alternatives

No response

Additional Context

The thing is supposed to save time. Now it asks too much questions per each commit.

multipliedtwice commented 1 year ago

Or even a shortcut for VScode. Press cmd+option+s => commit, push, done.

di-sukharev commented 1 year ago

hey hey, a flag like oc -ff can be added

do you want to make a PR? ;)

mac2000 commented 1 year ago

may be it should use conventional -q flag, like all other tools

from what I see extraArgs already passed which makes me believe in this two places where we asking for confirmation we may just check if extraArgs.includes("-q") which should be enough

@di-sukharev if thats sounds ok to you, I might create an PR for this one, because also interested in more streamlined workflow

meantime as a workaround we may write small bash script instead, here is an starting point

di-sukharev commented 1 year ago

i would make it like this oco -f and allow a setting like OCO_FORCE=boolean to set it up via .env file or ~/.opencommit if you want it globally

who wants to PR this highly beneficial for developers and world itself feature?

github-actions[bot] commented 1 year ago

Stale issue message