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

Option to edit the commit before accepting #81

Open heroheman opened 1 year ago

heroheman commented 1 year ago

The current prompt summarizes all changes in several CC commits. This is not very helpful when skimming the gitlog, as information gets lost. Also the the CC Website suggests to only use one type.

What do I do if the commit conforms to more than one of the commit types? Go back and make multiple commits whenever possible. Part of the benefit of Conventional Commits is its ability to drive us to make more organized commits and PRs.

FAQ from ConventionalCommits

In addition to sort the text by importance - like Issue #71 suggested - I would like to see the first line summarize the changes in their entirety and/or give me the possibility to edit the text instead of just accepting or rejecting it.

di-sukharev commented 1 year ago

guys are working on that, now you can try oc hook set and then run git commit as usual (no -m flag). IDE should generate commit with the hook and allow it to be edited if you have such config enabled, in VSCode it's something like "git.terminalGitEditor": true

heroheman commented 1 year ago

I read about that but it actually does not work in my vs code config, As it just opens the standard commit editor. Restarted Terminal and VS Code, deactivated git lens and anything git related without change.

di-sukharev commented 1 year ago

I read about that but it actually does not work in my vs code config, As it just opens the standard commit editor. Restarted Terminal and VS Code, deactivated git lens and anything git related without change.

check this https://github.com/di-sukharev/opencommit/issues/1#issuecomment-1463546118

github-actions[bot] commented 1 year ago

Stale issue message