Updated on 2023-12-04 GMT+08:00

Repository Member Permissions

Repository Creation Permission

Table 1 Repository creation permission of project roles

Operation

Project Manager

Developer

Others

Create repositories

-

Repository Operation and Viewing Permission

Type

Operation

Creator

Administrator

Committer

Developer

Viewer (Repository Member)

Remarks

Code

Access code online

-

Edit code online

×

If a protected branch is set, permissions of this protected branch are used instead.

Download code online

-

Local code clone

-

Local code push

×

If a protected branch is set, permissions of this protected branch are used instead.

Fork

Fork a project

When you select a project for the Fork repository, only the projects for which you have the project-level developer permission or higher are displayed.

Members

Add a member

×

×

×

-

Edit a member

×

×

×

-

Remove a member

×

×

×

-

Approve a member

×

×

×

-

View a member

-

MR

Create an MR

×

-

View an MR

-

Merge an MR

×

×

  1. If a protected branch is set, permissions of this protected branch are used instead.
  2. Developers cannot merge MRs by default. MRs can be merged by developers only when the target branch is set as a protected branch and developers have MR permissions.

Edit an MR (Open)

×

×

  1. The MR creator can perform this operation, but the MR creator must be a developer or role with higher permissions.
  2. The √ role can operate all MRs, including MRs created by others and MRs created by yourself.

Close an MR

×

×

Re-open an MR

×

×

Edit a merged MR (Merged)

×

×

×

×

×

-

Cherry-pick an MR (generate an MR)

×

A temporary branch containing cherry-pick is automatically generated. The cherry pick operation fails in the following scenarios:

  1. If all branches are protected branches and the operator does not have the permission to create a branch (push), the operation fails.
  2. If the branch policy is configured and the temporary branch does not meet the policy, the operation fails.

Revert an MR (generate an MR)

×

A temporary branch containing revert is automatically generated. The revert operation fails in the following scenarios:

  1. If all branches are protected branches and the operator does not have the permission to create a branch (push), the operation fails.
  2. If the branch policy is configured and the temporary branch does not meet the policy, the operation fails.

Cherry-pick an MR

(No MR is generated, and new code is directly merged into the related branch.)

×

If a protected branch is set, permissions of this protected branch are used instead.

Revert MR

(No MR is generated, and new code is directly merged into the related branch.)

×

Delete the source branch

×

  1. The source branch can be deleted only when MR is performed between repository branches and the source branch is not protected.
  2. If the Fork repository has committed an MR to the source repository, the source branch of the source repository cannot be deleted.
  3. A protected source branch cannot be deleted.

Vote scoring in the scoring mechanism

  1. All repository members can score the MR even if they are not configured as scorers of this MR.
  2. By default, developers and roles with lower permissions can score from -1 to 1, and committers and roles with higher permissions can score from -2 to 2.

Review in the approval mechanism

Only MR reviewers can review the MR.

Approve in the approval mechanism

×

×

Only MR approvers and √ roles can review MRs.

Delete an MR

×

×

×

×

×

No one can delete an MR.

Score

Score

×

The repository configuration prevails:

  1. If Developers and above is selected, developers or users with higher permissions can give a score.
  2. If Committers and above is selected, committer or or users with higher permissions can give a score.

Reviews

Add a review

You can add a review for which you have permission to view MR.

Edit a review

×

×

×

×

×

Only reviewers can edit their reviews.

Delete a review

×

×

×

×

×

Reply a review

You can reply a review for which you have permission to view.

View a review

You can view all reviews for which you have permission to view MR.

Resolve a review

×

×

  1. When the severity of review is suggestion: MR creator, reviewer, committers and roles with higher permission can operate.
  2. When the severity of review is minor, major or fatal: Reviewer, committers, and roles with higher permission can operate, but the MR creator (Even if with supported roles) cannot operate.

Pipeline

Trigger an MR pipeline

×

The pipeline execution plan is enabled.

Branches

Create a branch

×

  1. If Developers cannot create branches is selected, this operation cannot be performed.
  2. If Committers cannot create branches is selected, this operation cannot be performed.

Edit a branch

×

Delete a branch

×

A protected branch cannot be deleted by any user.

View a branch

-

Tag

Create a tag

×

If Developers cannot create tags is selected, this operation cannot be performed.

Delete a tag

×

×

×

A protected tag cannot be deleted by any user.

View a tag

-

Settings

View settings

×

×

×

-

Edit settings

×

×

×

-

Rename a repository

×

×

×

×

-

Transfer repository ownership

×

×

×

×

-

Repository

Create a repository

×

-

Delete a repository

×

×

×

-

Display a repository

The repository is displayed for all repository members.

Activities

View updates

-

Associated work items

View associated work items

-

Home

View home

-

Repository statistics

View the statistics

-

Update the statistics

×

-

SSH and HTTP settings

View and edit

-

IP address whitelist

View and edit

×

×

×

×

×

The administrator can view and edit the information.

For details about how to set a protected branch policy, see Protected Branches.