如何在 GitLab 中允许每个用户受保护的分支访问? [英] How to allow per user protected branches access in GitLab?

查看:35
本文介绍了如何在 GitLab 中允许每个用户受保护的分支访问?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

GitLab 允许我创建受保护的分支,然后指定的女巫用户将拥有对这些受保护分支的推送访问权限.但是,如果我想让一些用户访问同一仓库中的一些但不是所有受保护的分支呢?我的意思是,更离散/细化的用户分支权限.

GitLab allow me create protected branches and then specified witch users will have push access to those protected branches. But what about if I want some users access to some, but not all protected branches on the same repo? I mean, a more discrete/granulated user-branch permissions.

推荐答案

GitLab 中不存在这些类型的权限.

Those types of permissions do not exist in GitLab.

作为替代方法:您可以让用户无法提交到主存储库,然后使用 项目分叉工作流 允许他们将存储库分叉到他们自己的命名空间,然后他们可以在上面进行工作,然后提交拉取请求.类似于 GitHub 遵循的工作流程.

As an alternative approach: you can make the user unable to commit to the main repository and then use the Project forking workflow allowing them to fork the repository to their own namespace which they can do their work on and then submit a pull request. Similar to the workflow that GitHub follows.

这篇关于如何在 GitLab 中允许每个用户受保护的分支访问?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆