6

When fixing an issue I want to make sure that I close the correct issue writing in the commit message: "Fixed #issueId".

To be faster I would like to list the repository issues in terminal. Is this possible with a git command?

I imagine something like below:

$ git issues --all

+---------------------------------------+
| Repository Name - Issues              |
+---------------------------------------+
| # | Title                   | Status  |
+---------------------------------------+
| 1 | Lorem Ipsum 1           | OPEN    |
| 2 | Lorem Ipsum 2           | WONTFIX |
| 3 | Lorem Ipsum 3           | RESOLVED|
| 4 | Lorem Ipsum 4           | INVLID  |
+---------------------------------------+
4

2 回答 2

9

也看看我的:https ://npmjs.org/package/git-issues

npm install -g git-issues

如果将bin/git-issues其添加到 PATH,它也可以从克隆位置工作。

它同时支持 GitHub 和 BitBucket。它默认显示open问题。对于closed问题运行:

git issues -s closed

随意分叉我的回购并发送具有更多功能的拉取请求。

于 2013-08-23T13:44:40.617 回答
4

不,不是直接使用“vanilla”git 命令行。

有一个“git 的命令行包装器,可以让你在 GitHub 上做得更好”。(根据网站)

http://hub.github.com/

然后你可以运行:

$ git browse -- issues

这将返回当前的项目问题。

编辑
在这种情况下,可能更有帮助。

这是 github 的 cli

于 2013-08-22T09:15:53.217 回答