module Gitlab::Client::Commits
def commit_status(project, sha, options = {})
(**options)
-
:all
(Boolean
) -- The flag to return all statuses, not only latest ones -
:name
(String
) -- Filter by status name, eg. jenkins -
:stage
(String
) -- Filter by stage -
:ref
(String
) -- Filter by ref name, it can be branch or tag
Parameters:
-
options
(Hash
) -- A customizable set of options. -
sha
(String
) -- The commit hash -
project
(Integer, String
) -- The ID or name of a project.
def commit_status(project, sha, options = {}) get("/projects/#{url_encode project}/repository/commits/#{sha}/statuses", query: options) end