Class: Loadrunner::Status

Inherits:
Object
  • Object
show all
Defined in:
lib/loadrunner/status.rb

Overview

Update GitHub pull request status

Class Method Summary collapse

Class Method Details

.update(repo:, sha:, state:, context: nil, description: nil, url: nil) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/loadrunner/status.rb', line 7

def update(repo:, sha:, state:, context: nil, description: nil, url: nil)
  api = GithubAPI.new

  opts = {
    state: state,
    target_url:  url,
    context: context,
    description: description
  }

  api.status repo, sha, opts
end