opencode icon indicating copy to clipboard operation
opencode copied to clipboard

feat(cli): add git-commit-msg command for conventional commits

Open cmac4603 opened this issue 6 months ago • 0 comments

Add new command to generate conventional commit messages from git diffs and copy to clipboard.

$ bun run packages/opencode/src/index.ts git-commit-msg -c
█▀▀█ █▀▀█ █▀▀ █▀▀▄ █▀▀ █▀▀█ █▀▀▄ █▀▀
█░░█ █░░█ █▀▀ █░░█ █░░ █░░█ █░░█ █▀▀
▀▀▀▀ █▀▀▀ ▀▀▀ ▀  ▀ ▀▀▀ ▀▀▀▀ ▀▀▀  ▀▀▀

>  Generating conventional commit message...

@  amazon-bedrock/anthropic.claude-sonnet-4-20250514-v1:0

Generated commit message:

fix(cli): did something useful...maybe

✓ Copied to clipboard!

To use this message, run:
git commit -m "fix(cli): did something useful...maybe"

Not sure if this fits with the TUI, but I find this feature super-useful with another tool I use and wondering if it could be added with some more work/tests? Looking for any advice on current implementation and if the code owners like the idea for me to spend more time on it

cmac4603 avatar Jun 22 '25 21:06 cmac4603