zccrs
deepin
2025-06-29 09:52 添加 deb软件源的方式没有经过验证,不知道是否可以
Reply Like 0 View the author
添加 deb软件源的方式没有经过验证,不知道是否可以
用Rust写的!
非常好用👍
我之前一直使用JetBrains自家的AI工具配合自定义的提示词生成commit,但是在终端中使用时无法使用。很不错,试试。
膜拜大佬
膜拜大佬
😂 ai写的
需要龙芯版
需要龙芯版
没有对应的GitHub Action可以构建,你要不编译下试试
妈妈再也不用担心我写不好 commit 信息了,主要功能是这样的:
当前最新版本 v0.5.1,支持:
在 release 页面就可以下载:https://github.com/zccrs/git-commit-helper/releases
如果安装后因为系统环境原因导致无法运行,可以 git clone https://github.com/zccrs/git-commit-helper 后,运行 install.sh 脚本安装,在 deepin 25 上测试过OK。
下面是详细的介绍,包括安装方式和使用方式:
Git Commit Helper
一个强大的 Git 提交消息助手,支持多个 AI 服务,实现智能提交消息生成和中英互译
✨ 功能特点
🤖 多 AI 服务支持
🔧 高度可定制
📝 智能提交
🔍 智能代码审查
🌏 中英双语
📦 安装
从源码安装
包管理器安装
🚀 快速开始
💡 使用指南
翻译示例
以下是一个实际的提交消息翻译示例:
展开查看示例
原始提交消息:
翻译后的提交消息:
翻译命令
使用翻译命令有三种方式:
命令会自动判断参数内容:如果是一个存在的文件路径则读取文件内容进行翻译,否则将参数内容作为文本进行翻译。
命令概览
git-commit-helper show
git-commit-helper install [-f]
git-commit-helper ai add
git-commit-helper ai edit
git-commit-helper ai remove
git-commit-helper ai set-default
git-commit-helper ai set-timeout -s 30
git-commit-helper ai list
git-commit-helper ai test [-t "测试文本"]
git-commit-helper translate [-f 文件] [-t 文本]
git-commit-helper commit [-t 类型] [-m 描述] [-a] [--no-review]
git-commit-helper ai-review [--enable/--disable/--status]
提交类型
命令行参数
示例:
AI 代码审查功能
工具提供两种代码审查方式:
远程代码审查功能包含:
提交信息翻译
代码变更审查
远程审查支持的平台:
示例:
输出格式:
本地提交审查
你可以通过以下方式控制代码审查功能:
🔄 版本更新流程
更新版本时需要修改以下文件:
Cargo.toml
debian/changelog 和 git-commit-helper.spec
注意:debian 和 rpm 包的 changelog 都需要更新,并且内容要保持一致。
对于 debian/changelog:
对于 git-commit-helper.spec:
PKGBUILD
git-commit-helper.spec
Git 标签
📂 项目结构
📦 项目打包
⚙️ 配置文件
默认配置路径:
~/.config/git-commit-helper/config.json
~/Library/Application Support/git-commit-helper/config.json
%APPDATA%\git-commit-helper\config.json
🔍 调试日志
通过设置环境变量
RUST_LOG
可以开启调试日志:常用日志级别:
🤝 贡献
欢迎提交 Issue 和 Pull Request!
📄 许可证
本项目采用 MIT 许可证。