module Gitlab::Client::Commits

def update_commit_status(project, sha, state, options = {})

Options Hash: (**options)
  • :target_url (String) -- The target URL to associate with this status
  • :name (String) -- Filter by status name, eg. jenkins
  • :ref (String) -- The ref (branch or tag) to which the status refers

Parameters:
  • options (Hash) -- A customizable set of options.
  • state (String) -- of the status. Can be: pending, running, success, failed, canceled
  • sha (String) -- The commit hash
  • project (Integer, String) -- The ID or name of a project.
def update_commit_status(project, sha, state, options = {})
  post("/projects/#{url_encode project}/statuses/#{sha}", query: options.merge(state: state))
end