Module: Bk
- Defined in:
- lib/bk.rb,
lib/bk/color.rb,
lib/bk/format.rb,
lib/bk/version.rb,
lib/bk/commands.rb,
lib/bk/commands/artifacts.rb,
lib/bk/commands/annotations.rb,
lib/bk/annotation_formatter/markdown.rb
Defined Under Namespace
Modules: AnnotationFormatter, Color, Commands, Format Classes: Error
Constant Summary collapse
- HTTP =
Configure GraphQL endpoint using the basic HTTP network adapter.
GraphQL::Client::HTTP.new("https://graphql.buildkite.com/v1") do def headers(context) unless (token = context[:access_token] || ENV["BUILDKITE_API_TOKEN"]) raise "missing BuildKite access token" end { "Authorization" => "Bearer #{token}", "Content-Type" => "application/json" } end end
- SCHEMA_PATH =
Pathname.new(__FILE__).dirname.dirname.join("schema.json")
- Schema =
GraphQL::Client.load_schema(SCHEMA_PATH.to_s)
- Client =
Schema = GraphQL::Client.load_schema(HTTP)
GraphQL::Client.new(schema: Schema, execute: HTTP)
- VERSION =
"0.1.0"