Class: GithubCLI::PullRequest

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

Class Method Summary collapse

Methods inherited from API

configure, github_api, output, set_basic_auth

Class Method Details

.commits(user, repo, number, params, options) ⇒ Object


32
33
34
35
36
# File 'lib/github_cli/apis/pull_request.rb', line 32

def commits(user, repo, number, params, options)
  output options do
    github_api(options).pull_requests.commits user, repo, number, params
  end
end

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


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

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

.files(user, repo, number, params, options) ⇒ Object


38
39
40
41
42
# File 'lib/github_cli/apis/pull_request.rb', line 38

def files(user, repo, number, params, options)
  output options do
    github_api(options).pull_requests.files user, repo, number, params
  end
end

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


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

def get(user, repo, number, params, options)
  output options do
    github_api(options).pull_requests.get user, repo, number, params
  end
end

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


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

def list(user, repo, params, options)
  output options do
    github_api(options).pull_requests.list user, repo, params
  end
end

.merge(user, repo, number, params, options) ⇒ Object


50
51
52
53
54
# File 'lib/github_cli/apis/pull_request.rb', line 50

def merge(user, repo, number, params, options)
  output options do
    github_api(options).pull_requests.merge user, repo, number, params
  end
end

.merged(user, repo, number, params, options) ⇒ Object


44
45
46
47
48
# File 'lib/github_cli/apis/pull_request.rb', line 44

def merged(user, repo, number, params, options)
  output options do
    github_api(options).pull_requests.merged? user, repo, number, params
  end
end

.update(user, repo, number, params, options) ⇒ Object


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

def update(user, repo, number, params, options)
  output options do
    github_api(options).pull_requests.update user, repo, number, params
  end
end