module Github::Repos::Collaborators
def add_collaborator(user_name, repo_name, collaborator, params={})
@repos.add_collaborator 'user', 'repo', 'collaborator'
@repos = Github::Repos.new
@github.collaborators.add_collaborator 'user', 'repo', 'collaborator'
@github = Github.new
Examples:
Add collaborator
def add_collaborator(user_name, repo_name, collaborator, params={}) _update_user_repo_params(user_name, repo_name) _validate_user_repo_params(user, repo) unless user? && repo? _validate_presence_of collaborator _normalize_params_keys(params) put("/repos/#{user}/#{repo}/collaborators/#{collaborator}", params) end