2023-03-07 04:43:24 -05:00
---
2023-03-07 04:48:34 -05:00
layout: '~/layouts/Markdown.astro'
title: 'Repository Permissions'
license: 'CC-BY-SA-4.0'
origin_url: 'https://codeberg.org/Codeberg/Documentation/src/commit/ceec82002bbdc62cf27974e84df51369a4bfe0f9/content/collaborating/repo-permissions.md'
2023-03-07 04:43:24 -05:00
---
2023-04-28 10:02:55 -04:00
<!-- See also https://github.com/go - gitea/gitea/blob/e8433b7fe6dd1dfa5ecf0633568cc3e34caeb0f9/docs/content/doc/usage/permissions.en - us.md -->
2023-03-07 04:43:24 -05:00
2023-03-07 04:48:34 -05:00
When you invite collaborators to join your repository or when you create teams for your organization, you have to decide what each collaborator/team is allowed to do.
You can assign teams different levels of permission for each unit (e.g. issues, PR's, wiki).
2023-03-07 04:43:24 -05:00
## Collaborators
There are four permission levels: Read, Write, Administrator and Owner.
The owner is the person who created the repository.
The table below gives an overview of what collaborators are allowed to do when granted each of these permission levels:
< table class = "table" >
< thead >
< tr >
2023-03-07 13:47:51 -05:00
< th scope = "col" > Task < / th >
< th scope = "col" > Read < / th >
< th scope = "col" > Write< / th >
< th scope = "col" > Admin < / th >
< th scope = "col" > Owner < / th >
2023-03-07 04:43:24 -05:00
< / thead >
< tbody >
< tr >
2023-03-07 13:47:51 -05:00
< td scope = "row" > View, clone and pull repository < / td >
2023-03-07 04:48:34 -05:00
< td > < span style = "color: green" > ✅< / span > < / td >
< td > < span style = "color: green" > ✅< / span > < / td >
< td > < span style = "color: green" > ✅< / span > < / td >
< td > < span style = "color: green" > ✅< / span > < / td >
2023-03-07 04:43:24 -05:00
< / tr >
< tr >
2023-03-07 13:47:51 -05:00
< td scope = "row" > Contribute pull requests < / td >
2023-03-07 04:48:34 -05:00
< td > < span style = "color: green" > ✅< / span > < / td >
< td > < span style = "color: green" > ✅< / span > < / td >
< td > < span style = "color: green" > ✅< / span > < / td >
< td > < span style = "color: green" > ✅< / span > < / td >
2023-03-07 04:43:24 -05:00
< / tr >
< tr >
2023-03-07 13:47:51 -05:00
< td scope = "row" > Push to/update contributed pull requests < / td >
2023-03-07 04:48:34 -05:00
< td > < span style = "color: green" > ✅< / span > < / td >
< td > < span style = "color: green" > ✅< / span > < / td >
< td > < span style = "color: green" > ✅< / span > < / td >
< td > < span style = "color: green" > ✅< / span > < / td >
2023-03-07 04:43:24 -05:00
< / tr >
< tr >
2023-03-07 13:47:51 -05:00
< td scope = "row" > Push directly to repository < / td >
2023-03-08 09:21:11 -05:00
< td > < span style = "color: red" > ❌< / span > < / td >
2023-03-07 04:48:34 -05:00
< td > < span style = "color: green" > ✅< / span > < / td >
< td > < span style = "color: green" > ✅< / span > < / td >
< td > < span style = "color: green" > ✅< / span > < / td >
2023-03-07 04:43:24 -05:00
< / tr >
< tr >
2023-03-07 13:47:51 -05:00
< td scope = "row" > Merge pull requests < / td >
2023-03-08 09:21:11 -05:00
< td > < span style = "color: red" > ❌< / span > < / td >
2023-03-07 04:48:34 -05:00
< td > < span style = "color: green" > ✅< / span > < / td >
< td > < span style = "color: green" > ✅< / span > < / td >
< td > < span style = "color: green" > ✅< / span > < / td >
2023-03-07 04:43:24 -05:00
< / tr >
< tr >
2023-03-07 13:47:51 -05:00
< td scope = "row" > Moderate/delete issues and comments < / td >
2023-03-08 09:21:11 -05:00
< td > < span style = "color: red" > ❌< / span > < / td >
2023-03-07 04:48:34 -05:00
< td > < span style = "color: green" > ✅< / span > < / td >
< td > < span style = "color: green" > ✅< / span > < / td >
< td > < span style = "color: green" > ✅< / span > < / td >
2023-03-07 04:43:24 -05:00
< / tr >
< tr >
2023-03-07 13:47:51 -05:00
< td scope = "row" > Force-push/rewrite history (if enabled) < / td >
2023-03-08 09:21:11 -05:00
< td > < span style = "color: red" > ❌< / span > < / td >
2023-03-07 04:48:34 -05:00
< td > < span style = "color: green" > ✅< / span > < / td >
< td > < span style = "color: green" > ✅< / span > < / td >
< td > < span style = "color: green" > ✅< / span > < / td >
2023-03-07 04:43:24 -05:00
< / tr >
< tr >
2023-03-07 13:47:51 -05:00
< td scope = "row" > Add/remove collaborators to repository < / td >
2023-03-08 09:21:11 -05:00
< td > < span style = "color: red" > ❌< / span > < / td >
< td > < span style = "color: red" > ❌< / span > < / td >
2023-03-07 04:48:34 -05:00
< td > < span style = "color: green" > ✅< / span > < / td >
< td > < span style = "color: green" > ✅< / span > < / td >
2023-03-07 04:43:24 -05:00
< / tr >
< tr >
2023-03-07 13:47:51 -05:00
< td scope = "row" > Configure branch settings (protect/unprotect, enable force-push) < / td >
2023-03-08 09:21:11 -05:00
< td > < span style = "color: red" > ❌< / span > < / td >
< td > < span style = "color: red" > ❌< / span > < / td >
2023-03-07 04:48:34 -05:00
< td > < span style = "color: green" > ✅< / span > < / td >
< td > < span style = "color: green" > ✅< / span > < / td >
2023-03-07 13:47:51 -05:00
< / tr >
2023-03-07 04:43:24 -05:00
< tr >
2023-03-07 13:47:51 -05:00
< td scope = "row" > Configure repository settings (enable wiki, issues, PRs, releases, update profile) < / td >
2023-03-08 09:21:11 -05:00
< td > < span style = "color: red" > ❌< / span > < / td >
< td > < span style = "color: red" > ❌< / span > < / td >
2023-03-07 04:48:34 -05:00
< td > < span style = "color: green" > ✅< / span > < / td >
< td > < span style = "color: green" > ✅< / span > < / td >
2023-03-07 04:43:24 -05:00
< / tr >
< tr >
2023-03-07 13:47:51 -05:00
< td scope = "row" > Configure repository settings in the danger zone (transfer ownership, delete wiki data / repository, archive repository) < / td >
2023-03-08 09:21:11 -05:00
< td > < span style = "color: red" > ❌< / span > < / td >
< td > < span style = "color: red" > ❌< / span > < / td >
< td > < span style = "color: red" > ❌< / span > < / td >
2023-03-07 04:48:34 -05:00
< td > < span style = "color: green" > ✅< / span > < / td >
2023-03-07 04:43:24 -05:00
< / tr >
< / tbody >
< / table >
## Teams
The permissions for teams are quite configurable. You can specify which repositories a team has access to; therefore, you can specify for each unit (Code Access, Issues, Releases) a different permission level.
Each unit is configured to have one of these 3 permission levels:
- No Access: Members cannot view or take any other action on this unit.
- Read: Members can view the unit, and do standard actions for that unit (See the Read column under [Collaborators ](#collaborators )).
- Write: Members can view the unit, and execute write actions that unit (See the Write column under [Collaborators ](#collaborators )).
2023-03-07 14:47:36 -05:00
When a team is configured to have administrator access, you cannot change units.
2023-03-07 04:43:24 -05:00
Currently, there are six units that can be configured:
- Code: access source code, files, commits, and branches.
- Issues: organize bug reports, tasks, and milestones.
- Pull Requests: access pull requests, and code reviews.
- Releases: track the project versions and downloads.
- Wiki: access and write documentation.
- Projects: access and manage issues and pull requests in project boards.
There are also two units which can be toggled:
- External Wiki: access to external wiki.
- External Issues: access to the external issue tracker.
A team can be given the permission to create new repositories. When a member of such team creates a new repository, he/she will get administrator access to the repository.