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, String)

    The ID or name 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:

[View source]

68
69
70
# File 'lib/gitlab/client/builds.rb', line 68

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