跳到主要内容

Roles and Permissions

System Roles and Permissions


Different users have different permissions based on their roles and permissions within the organization or project. In public projects and organizations, all logged-in users will enjoy the following permissions:

  • Create new issues
  • Create pull requests (PRs) in the project
  • Post comments (including commenting on issues, PRs, commits, and discussions)
  • Clone or download project code
  • View project wiki pages
  • View organization or project discussions
  • View the organization's public boards

In addition to the permissions of public projects, there are some features not restricted by the permission system:

  1. Lightweight PR creation does not depend on code push permissions. When lightweight PRs are enabled in the project, any platform-logged user can submit a lightweight PR.
  2. Protected branches and protected tags will follow the effective protection rules.

System Roles


In GitCode, system roles are divided into the following types:

  1. Administrator (Owner): The administrator of the organization, who has all permissions and final decision-making authority.
  2. Maintainer: A maintainer of the project or organization, responsible for daily maintenance work, such as handling issues and PRs.
  3. Developer: Write and submit code, participate in development and discussions.
  4. Reporter: Report issues, provide feedback, and participate in project discussions.
  5. Guest: Browse project permissions, participate in discussions in the public discussion area.

Organization Administrator

ResourcePermissions
OrganizationDeleteSettingsUpdate
ProjectCreateForkUpdateDeleteSettingsArchiveTransfer
CodePushDownload
MembersInviteUpdateRemove
IssuesCreateUpdateClose/OpenPinLock
LabelsCreateUpdateDelete
MilestonesCreateUpdateDelete
BranchesCreateDelete
TagsCreateDelete
Pull RequestsCreateUpdateReviewApproveMergeCloseReopenTest
CommentsCreateResolve
DiscussionsCreateUpdateLockPinClose/Open
Kanban BoardsCreateUpdateDeleteClose/Open

The highest role for project members is the administrator, and administrator permissions can only be inherited from the organization; they do not support adding "administrator" permissions directly in the project.

  1. Creators can update the title and description of issues and PRs, and also close or reopen them.
  2. The author of a comment can edit and update the comment.
  3. The member lists of the organization and the project can only be viewed by members of the organization and the project.
  4. Label permissions include both organization labels and project labels.
  5. Security issues submitted by users can only be viewed by the issue author and project members.
  6. The permissions of the project wiki are the same as those for pushing code to the project.
  7. The permissions of the project releases are the same as those for project tags.
  8. Resolving in a comment refers to resolving marked issues during PR code reviews.

Organization/Project Maintainers

ResourcePermissions
OrganizationSettings
ProjectCreateForkSettings
CodePushDownload
MembersInviteUpdateRemove
IssuesCreateUpdateClose/OpenPinLock
LabelsCreateUpdateDelete
MilestonesCreateUpdateDelete
BranchesCreateDelete
TagsCreateDelete
Pull RequestsCreateUpdateReviewApproveMergeCloseReopenTest
CommentsCreateResolve
DiscussionsCreateUpdateLockPinClose/Open
Kanban BoardsCreateUpdateDeleteClose/Open
  1. The creator of an issue or PR is allowed to update the title and description of the issue or PR, and is allowed to close or reopen the issue or PR.
  2. The author of a comment is allowed to edit and update the comment information.
  3. The member lists of the organization and the project can only be viewed by organization and project members.
  4. Label permissions include both organization labels and project labels.
  5. Security issues submitted by users can only be viewed by the issue author and project members.
  6. The permissions of the project wiki are consistent with the code push permissions of the project.
  7. The permissions of the project releases are consistent with the tag permissions of the project.
  8. Resolving in a comment refers to resolving marked issues during PR code reviews.

Organization/Project Developers

ResourcePermissions
ProjectFork
CodePushDownload
IssuesCreateClose/Open
BranchesCreateDelete
TagsCreate
Pull RequestsCreateReviewMergeTestClose
CommentsCreateResolve
DiscussionsCreateUpdateClose/Open
Kanban BoardsCreateUpdateClose/Open
  1. The creator of an issue or PR is allowed to update the title and description of the issue or PR, and is allowed to close or reopen the issue or PR.
  2. The author of a comment is allowed to edit and update the comment information.
  3. The member lists of the organization and the project can only be viewed by organization and project members.
  4. If "Prevent developers from creating tags" is selected, they will not be able to create tags.
  5. If "Prevent developers from creating branches" is selected, they will not be able to create branches.
  6. Security issues submitted by users can only be viewed by the issue author and project members.
  7. The permissions of the project wiki are consistent with the code push permissions of the project.
  8. The permissions of the project releases are consistent with the tag permissions of the project.
  9. Resolving in a comment refers to resolving marked issues during PR code reviews.

Organization/Project Reporters

ResourcePermissions
ProjectFork
CodeDownload
IssuesCreateClose/Open
Pull RequestsTest
CommentsCreateResolve
DiscussionsCreateClose/Open
  1. The author of a comment is allowed to edit and update the comment information.
  2. The member lists of the organization and the project can only be viewed by organization and project members.
  3. Security issues submitted by users can only be viewed by the issue author and project members.
  4. Resolving in a comment refers to resolving marked issues during PR code reviews.

Organization/Project Guests

ResourcePermissions
IssuesCreate
CommentsCreate
DiscussionsCreate
  1. The author of a comment is allowed to edit and update the comment information.
  2. The member lists of the organization and the project can only be viewed by organization and project members.
  3. Security issues submitted by users can only be viewed by the issue author and project members.