add_collaborator: Add a Collaborator to a Repository

View source: R/collaborators.R

add_collaboratorR Documentation

Add a Collaborator to a Repository

Description

Invite a user to a repository as a collaborator.

Usage

add_collaborator(
  owner,
  repo,
  username,
  permission = c("push", "pull", "admin")
)

Arguments

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"'

Permission

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.

References

<https://developer.github.com/v3/repos/collaborators/#add-user-as-a-collaborator>


coatless/ghapi3 documentation built on Dec. 12, 2023, 3:52 a.m.