Class: Buildkite::Annotation

Inherits:
Object
  • Object
show all
Defined in:
lib/buildkite/models/annotation.rb

Class Method Summary collapse

Methods inherited from Object

#initialize, #to_ostruct

Constructor Details

This class inherits a constructor from Buildkite::Object

Class Method Details

.list(org: Buildkite.config.org, pipeline: Buildkite.config.pipeline, build:) ⇒ Object



6
7
8
9
# File 'lib/buildkite/models/annotation.rb', line 6

def list(org: Buildkite.config.org, pipeline: Buildkite.config.pipeline, build:)
  response = Client.get_request("organizations/#{org}/pipelines/#{pipeline}/builds/#{build}/annotations")
  Collection.from_response(response, type: Annotation)
end