Skip to contents

Includes a GitHub user as a member of an Organization's team or updates their membership status.

Usage

add_org_team_member(id, username, role = c("member", "maintainer"))

remove_org_team_member(id, username)

Arguments

id

Team ID Number.

username

Name of the user on GitHub.

role

The role that this user should have in the team. Can be one of: `"member"` or `"maintainer"`. Default: `"member"`

Role

The role that this user should have in the team. Can be one of: - `"member"` - a normal member of the team. - `"maintainer"` - a team maintainer. Able to add/remove other team members, promote other team members to team maintainer, and edit the team's name and description.

Remove Team Member

This does not delete the user on GitHub nor does it remove the user from the GitHub organization. This functionality only suppresses users from being identified as a member of a team.

References

<https://developer.github.com/v3/teams/members/#add-or-update-team-membership>

<https://developer.github.com/v3/teams/members/#remove-team-membership>