如何从终端使用Gitlab的问题?

iti*_*skj 9 git gitlab

我知道你可以通过安装ghi在命令行上使用Github问题.

但是,有没有办法使用类似的工具在Gitlab上列出/添加/删除/编辑存储库的问题?

小智 9

GLab 似乎是一个不错的选择。

GLab 是一个用 Go (golang) 编写的开源 Gitlab Cli 工具,可帮助从命令行与 Gitlab 无缝协作。处理问题、合并请求、直接从 CLI 观察正在运行的管道以及其他功能。

https://github.com/profclems/glab

  • 该工具现已正式归属于 GitLab,名为 [gitlab-cli](https://gitlab.com/gitlab-org/cli)。 (2认同)

Von*_*onC 5

你有一个类似的包装器(在 python 中,而不是 ruby​​ 中)Itxaka/pyapi-gitlab

git = gitlab.Gitlab(host=host)
git.login(user=user, password=password)
git.getall(git.getprojects)

git.getissues(page=1, per_page=40)
Run Code Online (Sandbox Code Playgroud)

在红宝石中,这将是NARKOZ/gitlab

# set an API endpoint
Gitlab.endpoint = 'http://example.net/api/v3'
# => "http://example.net/api/v3"

# set a user private token
Gitlab.private_token = 'qEsq1pt6HJPaNciie3MG'
# => "qEsq1pt6HJPaNciie3MG"

# configure a proxy server
Gitlab.http_proxy('proxyhost', 8888)
# proxy server w/ basic auth
Gitlab.http_proxy('proxyhost', 8888, 'proxyuser', 'strongpasswordhere')

# list projects
Gitlab.projects(per_page: 5)
Run Code Online (Sandbox Code Playgroud)

它可以获取问题