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

查看:345
本文介绍了如何在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版本。或者在Github,这是该项目松散的基础。

I'm not sure those types of permissions exist in the version of Gitlab today. Or in Github which is what the project has been loosely based upon.

我认为版本5.2发布了分叉。因此,您可能会让用户无法提交到主存储库,但允许他们将存储库分配到他们自己的名称空间,以便他们完成工作并提交一个请求。类似于Github所遵循的工作流程。 (我没有尝试过,肯定还没有升级到> = 5.2)

I think version 5.2 released forking. So you maybe able to make the user unable to commit to the main repository, but allow them to fork the repository to their own namespace which they can do their work and submit a pull request. Similar to the workflow that Github follows. (I haven't tried this for sure, haven't upgraded to >= 5.2 yet)

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

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