[PR #312] [CLOSED] feat(cli): add git-commit-msg command for conventional commits #9579

Closed
opened 2026-02-16 18:13:48 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/312
Author: @cmac4603
Created: 6/22/2025
Status: Closed

Base: devHead: git-commit-msg


📝 Commits (1)

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

📊 Changes

3 files changed (+170 additions, -2 deletions)

View changed files

📝 bun.lock (+2 -2)
packages/opencode/src/cli/cmd/git-commit-msg.ts (+166 -0)
📝 packages/opencode/src/index.ts (+2 -0)

📄 Description

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


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/312 **Author:** [@cmac4603](https://github.com/cmac4603) **Created:** 6/22/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `git-commit-msg` --- ### 📝 Commits (1) - [`c0c5101`](https://github.com/anomalyco/opencode/commit/c0c5101963be18163e1e54771385b25b171a86e4) feat(cli): add git-commit-msg command for conventional commits ### 📊 Changes **3 files changed** (+170 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `bun.lock` (+2 -2) ➕ `packages/opencode/src/cli/cmd/git-commit-msg.ts` (+166 -0) 📝 `packages/opencode/src/index.ts` (+2 -0) </details> ### 📄 Description Add new command to generate conventional commit messages from git diffs and copy to clipboard. ```bash $ bun run packages/opencode/src/index.ts git-commit-msg -c ``` ```console █▀▀█ █▀▀█ █▀▀ █▀▀▄ █▀▀ █▀▀█ █▀▀▄ █▀▀ █░░█ █░░█ █▀▀ █░░█ █░░ █░░█ █░░█ █▀▀ ▀▀▀▀ █▀▀▀ ▀▀▀ ▀ ▀ ▀▀▀ ▀▀▀▀ ▀▀▀ ▀▀▀ > 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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:13:48 -05:00
yindo closed this issue 2026-02-16 18:13:48 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9579