class Github::Repos::Statuses

def create(user_name, repo_name, sha, params={})


"description" => "Successful build #3 from origin/master"
"target_url" => "http://ci.example.com/johndoe/my-repo/builds/sha",
"state" => "success",
github.repos.statuses.create 'user-name', 'repo-name', 'sha',
github = Github.new
= Examples

* :description - Optional string - Short description of the status
to easily see the ‘source’ of the Status.
status. This URL will be linked from the GitHub UI to allow users
* :target_url - Optional string - Target url to associate with this
pending, success, error, or failure.
* :state - Required string - State of the status - can be one of
= Inputs

Create a status
def create(user_name, repo_name, sha, params={})
  set :user => user_name, :repo => repo_name
  assert_presence_of user, repo
  normalize! params
  filter! VALID_STATUS_PARAM_NAMES, params, :recursive => false
  assert_required_keys(REQUIRED_PARAMS, params)
  post_request("/repos/#{user}/#{repo}/statuses/#{sha}", params)
end