Skip to content

Protected branch #776

@truongsinh

Description

@truongsinh

Reference https://about.gitlab.com/2014/09/29/gitlab-flow/
Reference https://code.google.com/p/gerrit/

Gogs should have a feature of protected branch. Let say master is a protected branch, then:

  • Nobody can push directly to master
  • Everybody* can checkout/fork from master
  • Everybody* submit a merge request / code review request for his/her new branch (features/fixes)
  • Everybody* can comment/discuss the diff, preferable line-by-line
  • Only those with "Reviewer" or "Supervisor" or "Senior" privilege can vote up/down on a merge request / code review
  • A merge request can only be eligible to be merged to master when having at least [a number] 2 of up votes. This parameter should be defined in a config file, environment variable, or runtime argument, so that nobody, even master or supreme admin can bypass code review process by setting it to 1 and self-review their code.

*Everybody is any user with sufficient authorization to read a project master and write to their own name space.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions