【问题标题】:Managing GitLab Protected Branches by CLI?通过 CLI 管理受 GitLab 保护的分支?
【发布时间】:2019-05-28 00:37:25
【问题描述】:

我正在尝试解除对 GitLab 组中的分支的保护。 这个组有几个项目(50+)。 所以当我尝试处理保护分支的权限时,我必须进入每个 GitLab 项目......

如下:

Fix Gilab error: "you are not allowed to push code to protected branches on this project"?

我想通过命令行工具管理分支保护策略。有什么好的解决办法吗?

【问题讨论】:

  • 我使用 docker-compose 安装了 GitLab,它在 docker 上运行。 GitLab 容器使用主机挂载的卷来存储持久数据:/srv/gitlab/data/srv/gitlab/logs/srv/gitlab/config我已经查看了这些目录,但没有找到..

标签: gitlab


【解决方案1】:

我想我必须使用 REST API。

https://docs.gitlab.com/ee/api/protected_branches.html

【讨论】:

    猜你喜欢
    • 2019-05-17
    • 1970-01-01
    • 1970-01-01
    • 2022-11-19
    • 2020-11-08
    • 2021-04-29
    • 2020-10-26
    • 2018-03-29
    • 1970-01-01
    相关资源
    最近更新 更多