View source: R/collaborators.R
add_collaborator | R Documentation |
Invite a user to a repository as a collaborator.
add_collaborator(
owner,
repo,
username,
permission = c("push", "pull", "admin")
)
owner |
Name of the repository owner. |
repo |
Name of the repository. |
username |
Name of the user. |
permission |
The permission to grant the collaborator. Can be one of: '"pull"', '"push"', or '"admin"'. Default: '"push"' |
The permission to grant the collaborator. **Only valid on organization-owned repositories.** Can be one of: - '"pull"' - can pull, but not push to or administer this repository - '"push"' - can pull and push, but not administer this repository. - '"admin"' - can pull, push and administer this repository.
<https://developer.github.com/v3/repos/collaborators/#add-user-as-a-collaborator>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.