lib/github_cli/apis/status.rb in github_cli-0.5.9 vs lib/github_cli/apis/status.rb in github_cli-0.6.0
- old
+ new
@@ -3,18 +3,18 @@
module GithubCLI
class Status < API
class << self
- def all(user, repo, sha, params, format)
- output format do
- github_api.repos.statuses.list user, repo, sha, params
+ def all(user, repo, sha, params, options)
+ output options do
+ github_api(options).repos.statuses.list user, repo, sha, params
end
end
- def create(user, repo, sha, params, format)
- output format do
- github_api.repos.statuses.create user, repo, sha, params
+ def create(user, repo, sha, params, options)
+ output options do
+ github_api(options).repos.statuses.create user, repo, sha, params
end
end
end
end # Status