且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在 GitLab 中允许每个用户受保护的分支访问?

更新时间:2023-02-24 19:00:44

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.