Git email patch review addon for Thunderbird
Git email patch review addon for Thunderbird
Thunderbird 的 Git 邮件补丁审查插件
thunderbird-patch-review Simple email patch review tool for Thunderbird git clone git://mccd.space/thunderbird-patch-review Log | Files | Refs | README | LICENSE | Mail README.html (3011B)
thunderbird-patch-review 一款适用于 Thunderbird 的简易邮件补丁审查工具 git clone git://mccd.space/thunderbird-patch-review 日志 | 文件 | 引用 | README | 许可证 | 邮件 README.html (3011B)
Thunderbird Patch Review
Review git patches from email inside Thunderbird
Thunderbird Patch Review
在 Thunderbird 内部审查来自电子邮件的 git 补丁
Synopsis
A Thunderbird Add-on. Open a patch email, press Review, comment on hunks, send the review as a mailing-list reply, and apply the series to a local repository with git-am(1).
概要
这是一个 Thunderbird 插件。打开补丁邮件,点击“Review”(审查),对代码块(hunks)进行评论,将审查结果作为邮件列表回复发送,并使用 git-am(1) 将补丁系列应用到本地仓库。
Screenshots
Fig: Patch button included in plugin Fig: Patch overview Fig: Apply patches from the UI. Fig: Catch errors and send feedback. Fig: Sourcehut integration.
截图
图:插件中包含的补丁按钮 图:补丁概览 图:从 UI 应用补丁 图:捕获错误并发送反馈 图:Sourcehut 集成
Installation (source)
Package the extension source code as an .xpi and install it via the Add-ons Manager gear menu (Install Add-on From File…). To package it, run the following from the project root: (cd extension && zip -qrX ../patch-review.xpi .) At some point I will upload the add-on to Thunderbird.
安装(源码)
将扩展源代码打包为 .xpi 文件,并通过“附加组件管理器”的齿轮菜单(从文件安装附加组件…)进行安装。要进行打包,请在项目根目录下运行以下命令: (cd extension && zip -qrX ../patch-review.xpi .) 未来某个时间,我会将此插件上传到 Thunderbird 官方平台。
Sourcehut integration
When the series arrives via a sourcehut mailing list, an option to set the patch state header will appear when sending the review. It uses Sourcehut’s email controls.
Sourcehut 集成
当补丁系列通过 Sourcehut 邮件列表送达时,在发送审查回复时会出现一个设置补丁状态头(patch state header)的选项。该功能使用了 Sourcehut 的邮件控制接口。
Caveats
Patches arriving as attachments, HTML-only mail, and reviewing from a git worktree preview are not supported yet. Series collection searches the folder of the opened message only.
注意事项
目前尚不支持以附件形式发送的补丁、纯 HTML 邮件,以及从 git 工作树预览中进行审查。补丁系列收集功能仅搜索当前打开邮件所在的文件夹。
See also
The introductory post contains a small snippet with motivation.
参阅
介绍性文章中包含了一小段关于开发动机的说明。
Disclaimer
This add-on was vibe coded using GLM5.2 and built to solve the needs of my team. I was hesitant to share it, as I generally do not like vibe-coded projects. However, given that a tool like this is sorely lacking from the ecosystem, I decided to share it anyway. I have not reviewed the code line-by-line, but I designed the general approach the system should use, and focused on using as few dependencies as possible. I have also extensively Q&Ad the plugin manually alongside the test suite.
免责声明
此插件是使用 GLM5.2 通过“灵感编码”(vibe coded)完成的,旨在解决我团队的需求。我曾犹豫是否要分享它,因为我通常不喜欢这种方式编写的项目。然而,考虑到生态系统中非常缺乏此类工具,我还是决定将其分享出来。我没有逐行审查代码,但我设计了系统应遵循的通用方法,并专注于尽可能减少依赖。此外,除了测试套件外,我还对该插件进行了大量的手动质量保证(Q&A)测试。
Contributing
Contributions and bug reports go to the mailing list: ~marcc/thunderbird-review-plugin@lists.sr.ht.
贡献
贡献和错误报告请发送至邮件列表:~marcc/thunderbird-review-plugin@lists.sr.ht。
Author
Marc Coquand
作者
Marc Coquand