Richasy.RodelCommit 0.1.0

dotnet tool install --global Richasy.RodelCommit --version 0.1.0                
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local Richasy.RodelCommit --version 0.1.0                
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Richasy.RodelCommit&version=0.1.0                
nuke :add-package Richasy.RodelCommit --version 0.1.0                

<div align="center"><a name="readme-top"></a> <img height="120" src="https://img.picui.cn/free/2025/02/24/67bc7e06c62b3.png">

<h1>Rodel Commit</h1>

Rodel Commit 是一款基于 agent-kernel 构建的 CLI 提交工具

<small>🩷感谢 Lobe Commit 提供的灵感🩷</small>

NuGet Version GitHub License

</div>

✨ 特性

  • 🤯 支持使用 20 余种国内外主流 AI 服务根据 git diffs 自动生成提交信息
  • 🛠️ 流畅的提交信息编辑流程
  • 😜 支持添加 CommitType
  • 🗺️ 支持多语言提交信息

📦 安装

在安装了 .NET 9 SDK 的设备上,请运行下面的命令:

dotnet tool install --global Richasy.RodelCommit

🤯 使用

第一次使用前需要先创建配置文件:

rodel-commit --config

这会打开默认的JSON编辑器,你可以在其中填写你的服务配置.

之后使用 rodel-commit 命令生成提交信息:

git add <files...>
rodel-commit

如果你希望手动编写提交信息,可以使用 rodel-commit --manual 命令。

并发限制

当 git diffs 产生的内容较多时,应用会根据你设置的切割阈值(diff_chunk_size)来切割 diff 内容。

此时会采取并发请求策略以尽可能减少生成时间,但是请注意,过多的并发请求可能会导致服务拒绝响应。

应用默认的并发请求数为 5,你可以在配置文件中修改 concurrent_limit 来调整并发请求数。

🛖 仓库描述

你可能会在多个仓库之中使用 Rodel Commit,仅凭代码变动有时候并不能准确生成提交信息,你可以额外为仓库添加描述文件,以便 Rodel Commit 生成更准确的提交信息。

运行以下命令创建仓库描述文件:

rodel-commit --repo your_repo_name

这会在用户目录的 .rodel-commit 目录下创建一个名为 your_repo_name.txt 的文件,你可以在其中填写仓库的描述信息。

首行为仓库路径,第二行以后为仓库描述。

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
0.1.0 95 3/2/2025
0.0.9 103 2/27/2025