Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Branch policy on Google cloud source repository

How to set the branch policy in Google cloud source repository, developers not allowed to push the code to the master branch, also how to create a Pull Request.

like image 281
San Jaisy Avatar asked Oct 15 '25 17:10

San Jaisy


1 Answers

As you've mentioned, there is no documentation to accomplish this approach of not allowing someone to push to the master or in general to any branch like in GitHub.

Actually, the security setting only admitted by Cloud Source Repositories are described here but the permissions are basically "You can write to a repo", "You can view the repo" or "You can't access the repo" and that's all.

Regarding the Pull Request, I think this is also not possible with Cloud Source Repositories, then, I would suggest to go with GitHub if those settings are important for your workflow and then you can mirror the repo from GitHub to CloudSource repositories.

Finally, there are already some Feature Requests for this two specific questions, Pull Requests and Permissions at branch level. You may want to upvote those Feature Requests and add a comment.

like image 141
Ferregina Pelona Avatar answered Oct 18 '25 17:10

Ferregina Pelona



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!