Class: GithubCLI::Issue

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

Class Method Summary collapse

Methods inherited from API

configure, github_api, output, set_basic_auth

Class Method Details

.all(arg, params, options) ⇒ Object


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

def all(arg, params, options)
  output options do
    github_api(options).issues.list arg, params
  end
end

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


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

def create(user, repo, params, options)
  output options do
    github_api(options).issues.create user, repo, params
  end
end

.edit(user, repo, id, params, options) ⇒ Object


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

def edit(user, repo, id, params, options)
  output options do
    github_api(options).issues.edit user, repo, id, params
  end
end

.get(user, repo, id, params, options) ⇒ Object


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

def get(user, repo, id, params, options)
  output options do
    github_api(options).issues.get user, repo, id, params
  end
end