【问题标题】:Can I add issues to github from the command line?我可以从命令行向 github 添加问题吗?
【发布时间】:2012-06-12 18:48:58
【问题描述】:

我是 git 新手,我希望能够通过 github 为我的项目绘制计划和进度。

问题是,这需要在 github.com 上使用浏览器进行大量点击,我希望能够通过使用命令行程序在某种程度上自动化该任务。

github有命令行界面吗?

【问题讨论】:

标签: git github command-line-interface github-issues


【解决方案1】:

您可以使用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

【讨论】:

    【解决方案2】:

    您可以查看 this cli 以获取 Github 问题 API。 请注意,这仅针对 Github 问题。

    希望这会有所帮助。

    [编辑] 原始答案提到了this 应用程序,它不再起作用并推荐ghi

    【讨论】:

    【解决方案3】:

    用Github新官方CLI(命令行界面):

    gh issue create --title "How to create an issue?" --body "I need a github CLI"
    

    查看更多 details and optionsinstallation instructions

    【讨论】:

      【解决方案4】:

      我正在开发一个github_cli gem,它提供对整个 GitHub API v3 的命令行访问。请试一试并报告任何问题/想法/功能请求。

      【讨论】:

        【解决方案5】:

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

        【讨论】:

          【解决方案6】:

          您有 3 个选项:

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

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

            Github 存储库:https://github.com/github/hub(~12k 星)

          2. 使用 NodeH 接口

            教程:http://nodegh.io/

            Github 仓库:https://github.com/node-gh/gh

          3. 使用 ghi 界面:

            教程和 Github 仓库:https://github.com/stephencelis/ghi/

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

          【讨论】:

            猜你喜欢
            • 2018-11-03
            • 2010-09-09
            • 2013-12-12
            • 2011-01-23
            • 1970-01-01
            • 2021-10-15
            • 2012-01-20
            • 2016-11-15
            • 1970-01-01
            相关资源
            最近更新 更多