4

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.

San Jaisy
  • 15,327
  • 34
  • 171
  • 290
  • Which error messages are you getting? What have you tried? Have you read the docs and there is something that is not working as expected? – Puteri Aug 07 '20 at 21:09
  • I haven't got any error message, I didn't find any link related to the branch policy on source repository – San Jaisy Aug 08 '20 at 02:02

1 Answers1

7

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.

Puteri
  • 3,348
  • 4
  • 12
  • 27