ghaw

ghaw(GitHub 工作助手)是一款面向专业的 GitHub 用户的有用的 CLI 工具。

命令

find-pull-requests

查找与给定文件名匹配的 pull request。需要显式的合并提交,以及来自 GitHub 的默认消息。

$ ghaw find-pull-requests HumbergerViewModel
https://github.com/toshi0383/hamburgerapp/pull/4119
https://github.com/toshi0383/hamburgerapp/pull/4089
https://github.com/toshi0383/hamburgerapp/pull/3824
https://github.com/toshi0383/hamburgerapp/pull/3533
https://github.com/toshi0383/hamburgerapp/pull/2912

ready-for-review

显示等待您审核的 pull request。带有 WIP 标签的 pull request 将被过滤掉。当您仅输入 ghaw 时,这是默认命令。

$ ghaw
https://github.com/org/app/pull/4187 🔖v2.17.0 ✅0
https://github.com/org/app/pull/4256 🔖v2.16.0 ✅1 🤔
https://github.com/org/app/pull/4243 🔖v2.16.0 ✅2
https://github.com/org/app/pull/4239 🔖v2.16.0 ✅0 🤔

JSON 输出选项(-j)也受支持,如果您想更改输出。

job-done

显示您评论的计数,对于您今天审核的每个 pull request。

安装

Mint

mint install toshi0383/ghaw

设置

设置 GITHUB_ACCESS_TOKEN 环境变量。

仓库信息(所有者/名称)和 GitHub 用户名会自动从您的环境中提取。如果它不正确或要使用不同的 GitHub 用户,请使用 -u 选项。

ghaw -u toshi0383 ready-for-review

许可证

MIT