2012-06-12 43 views
16

我是git的新手,我希望能够通过github映射我的项目的计划和进度。问题是,这需要大量的点击github.com上的浏览器,我希望能够通过使用命令行程序来自动完成任务。有没有github的命令行界面?我可以从命令行向github添加问题吗?

+0

这些选项自上次回答以来已更改。看到当前的选项在这里:https://stackoverflow.com/a/48913239/4752883 –

回答

7

您可以查看this cli Github问题API。 注意这仅限于Github问题。

希望这会有所帮助。

原来的回答提到this应用程序不再工作,并建议ghi

16

有一个ghi gem,你可以用它来管理问题。

The most commonly used ghi commands are: 
    list  List your issues (or a repository's) 
    show  Show an issue's details 
    open  Open (or reopen) an issue 
    close  Close an issue 
    edit  Modify an existing issue 
    comment  Leave a comment on an issue 
    label  Create, list, modify, or delete labels 
    assign  Assign an issue to yourself (or someone else) 
    milestone Manage project milestones 
+0

这应该是接受的答案,因为https://github.com/jsmits/github-cli已过时,并建议ghi – ianstarz

1

有一个github_cli的宝石,我的工作是提供给整个GitHub的API V3命令行访问。请尝试并报告任何问题/想法/功能要求。

0

NodeGH - Github命令行工具。让我们来创建新问题,评论,打开或关闭。 您可以在Github repo找到所有可用的命令。

0

你有3种选择:

  1. 使用由github上支持的官方命令行界面:

    教程:http://pythonhosted.org/hub/

    Github上回购:https://github.com/github/hub(〜12K星)

  2. 使用t他NodeH接口

    教程:http://nodegh.io/

    Github上回购:https://github.com/node-gh/gh

  3. 使用GHI接口:

    教程和Github上回购:https://github.com/stephencelis/ghi/

所有3看起来很酷。 hub应用看起来像拥有最多的星星,并得到github的正式支持。所以它最有可能长期保持。 所以,如果我正在寻找一个长期支持的解决方案,我会选择#1:hub

相关问题