Class: GithubCLI::Status

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

Class Method Summary collapse

Methods inherited from API

configure, github_api, output, set_basic_auth

Class Method Details

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


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

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

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


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

def create(user, repo, sha, params, options)
  output options do
    github_api(options).repos.statuses.create user, repo, sha, params
  end
end