Your organization's default permissions will set the baseline, but in order to add users to CODEOWNERS they will still need to be added explicitly to a repository. For example, if your orgaization sets a baseline of push/write and a user is given read as a collabotor or team, they will be given CODEOWNERS access, but will inherit the write permission.
Note
This section can be applied to repos/<file>.yml or suborgs/<file>.yml. It will most commonly appear in the individual repos though.
# These settings are synced to GitHub by https://github.com/github/safe-settings
collaborators:
- username: Batman
permission: maintain
- username: Superman
permission: adminTip
GitHub's API documentation defines these inputs and types:
|
The handle for the GitHub user account. |
collaborators:
- username: AquaMan
permission: maintain
... |
|
The permission to grant the collaborator. Only valid on organization-owned repositories. We accept the following permissions to be set: Default: |
collaborators:
- username: WonderWoman
permission: maintain |