开源项目 Maiao 为 GitHub、GitLab、Gitea、Forgejo、Bitbucket Cloud 及 Cursor Origin 等代码托管平台引入了 Gerrit 风格的 stacked pull requests 工作流 1。通过执行 git review 命令,该工具能够自动将分支中的每个 commit 创建为独立的 PR 或 MR,并建立相应的父子依赖关系 1。同时,它还支持自动 rebase 与 fixup 管理 1。该项目是 adevinta/maiao 的社区 fork,目前由 runetes/maiao 继续维护,并采用 MIT 许可证发布 1。
在底层机制上,Maiao 能够自动检测代码托管提供商,已知兼容的主机包括 github.com、gitlab.com、codeberg.org、bitbucket.org 以及 origin.cursor.com 1。对于 GitHub 环境,Maiao 将原生 stacks 视为渐进增强功能,会主动探测 Stacks API 并缓存 24 小时 1。用户可以通过 git config maiao.useNativeStack 命令控制原生 stacks 的行为,该设置的默认值为 auto 1。
Maiao is an open-source tool that introduces a Gerrit-style stacked pull requests workflow to code hosting platforms, including GitHub, GitLab, Gitea, Forgejo, Bitbucket Cloud, and Cursor Origin 1. Through the git review command, the software automatically creates an independent pull request or merge request for each commit in a branch and establishes parent-child dependencies 1. It also supports automatic rebasing, fixup management, and native Stacks API integration 1.
The system automatically detects the provider, with known hosts including github.com, gitlab.com, codeberg.org, bitbucket.org, and origin.cursor.com 1. For GitHub, Maiao treats native stacks as a progressive enhancement by probing the Stacks API and caching the result for 24 hours 1. The native stacks behavior can be controlled via the git config maiao.useNativeStack command, which defaults to auto 1. The project is a community fork of adevinta/maiao, continued by runetes/maiao, and is released under the MIT License 1.
评论
还没有评论,欢迎留下第一条。