Method: Gitlab::Client::Builds#commit_builds

Defined in:
lib/gitlab/client/builds.rb

#commit_builds(project, sha, options = {}) ⇒ Array<Gitlab::ObjectifiedHash>

Gets a list of builds for specific commit in a project.

Examples:

Gitlab.commit_builds(5, 'asdf')
Gitlab.commit_builds(5, 'asdf', { per_page: 10, page: 2 })

Parameters:

  • project (Integer)

    The ID of a project.

  • sha (String)

    The SHA checksum of a commit.

  • options (Hash) (defaults to: {})

    A customizable set of options.

Options Hash (options):

  • :page (Integer)

    The page number.

  • :per_page (Integer)

    The number of results per page.

Returns:



66
67
68
# File 'lib/gitlab/client/builds.rb', line 66

def commit_builds(project, sha, options={})
  get("/projects/#{project}/repository/commits/#{sha}/builds", query: options)
end