class Github::Repos::Collaborators
def collaborator?(user_name, repo_name, collaborator, params={})
github.collaborators.collaborator?('user', 'repo', 'collaborator')
github = Github.new
Examples:
Checks if user is a collaborator for a given repository
def 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 get_request("/repos/#{user}/#{repo}/collaborators/#{collaborator}", params) true rescue Github::Error::NotFound false end