Method: Github::Repos::Collaborators#add

Defined in:
lib/github_api/repos/collaborators.rb

#add(*args) ⇒ Object Also known as: <<

Add collaborator

Examples:

github = Github.new
github.collaborators.add 'user', 'repo', 'collaborator'

collaborators = Github::Repos::Collaborators.new
collaborators.add 'user', 'repo', 'collaborator'


32
33
34
35
36
37
# File 'lib/github_api/repos/collaborators.rb', line 32

def add(*args)
  arguments(args, :required => [:user, :repo, :collaborator])
  params = arguments.params

  put_request("/repos/#{user}/#{repo}/collaborators/#{collaborator}", params)
end