Class: GithubCLI::Collaborator

Inherits:
API
  • Object
show all
Defined in:
lib/github_cli/apis/collaborator.rb

Class Method Summary collapse

Methods inherited from API

configure, github_api, output, set_basic_auth

Class Method Details

.add(user, repo, collab, params, options) ⇒ Object


14
15
16
17
18
# File 'lib/github_cli/apis/collaborator.rb', line 14

def add(user, repo, collab, params, options)
  output options do
    github_api(options).repos.collaborators.add user, repo, collab, params
  end
end

.all(user, repo, params, options) ⇒ Object


8
9
10
11
12
# File 'lib/github_cli/apis/collaborator.rb', line 8

def all(user, repo, params, options)
  output options do
    github_api(options).repos.collaborators.list user, repo, params
  end
end

.collaborator?(user, repo, collab, params, options) ⇒ Boolean


20
21
22
23
24
# File 'lib/github_cli/apis/collaborator.rb', line 20

def collaborator?(user, repo, collab, params, options)
  output options do
    github_api(options).repos.collaborators.collaborator? user, repo, collab, params
  end
end

.remove(user, repo, collab, params, options) ⇒ Object


26
27
28
29
30
# File 'lib/github_cli/apis/collaborator.rb', line 26

def remove(user, repo, collab, params, options)
  output options do
    github_api(options).repos.collaborators.remove user, repo, collab, params
  end
end