Learn R Programming

ghclass (version 0.1.0)

repo_add_team: Add a team to a repository

Description

Add a team to a repository

Usage

repo_add_team(repo, team, permission = c("push", "pull", "admin"))

Arguments

repo

Character. Address of repository in "owner/name" format.

team

Character. Team name.

permission

Character. Permission to be granted to team for repo ("push", "pull", or "admin"), defaults to "push".

  • 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.

Examples

Run this code
# NOT RUN {
repo_add_user("ghclass-test/hw1-team1", c("user01", "user02"))

## Adding users to their individual repositories
user = c("user01", "user02")
repo_add_user(paste0("ghclass-test/hw2-", user), user)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab