Sha256: 2a4874da4ed759e4a262e6c05554d117adc978de8b340c83ca531acdaa62cd03

Contents?: true

Size: 364 Bytes

Versions: 60

Compression:

Stored size: 364 Bytes

Contents

# frozen_string_literal: true

module Buildkite
  module Pipelines
    module Helpers
      module Block
        def block(*args, emoji: nil)
          if emoji
            emoji = Array(emoji).map { |name| ":#{name}:" }.join
            args[0] = [emoji, args.first].compact.join(' ')
          end

          super(*args)
        end
      end
    end
  end
end

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
buildkite-builder-4.15.1 lib/buildkite/pipelines/helpers/block.rb
buildkite-builder-4.15.0 lib/buildkite/pipelines/helpers/block.rb
buildkite-builder-4.14.0 lib/buildkite/pipelines/helpers/block.rb
buildkite-builder-4.13.0 lib/buildkite/pipelines/helpers/block.rb
buildkite-builder-4.12.0 lib/buildkite/pipelines/helpers/block.rb
buildkite-builder-4.11.0 lib/buildkite/pipelines/helpers/block.rb
buildkite-builder-4.10.0 lib/buildkite/pipelines/helpers/block.rb
buildkite-builder-4.8.0 lib/buildkite/pipelines/helpers/block.rb
buildkite-builder-4.7.0 lib/buildkite/pipelines/helpers/block.rb
buildkite-builder-4.6.0 lib/buildkite/pipelines/helpers/block.rb
buildkite-builder-4.5.0 lib/buildkite/pipelines/helpers/block.rb
buildkite-builder-4.4.0 lib/buildkite/pipelines/helpers/block.rb
buildkite-builder-4.3.0 lib/buildkite/pipelines/helpers/block.rb
buildkite-builder-4.2.5 lib/buildkite/pipelines/helpers/block.rb
buildkite-builder-4.2.4 lib/buildkite/pipelines/helpers/block.rb
buildkite-builder-4.2.3 lib/buildkite/pipelines/helpers/block.rb
buildkite-builder-4.2.2 lib/buildkite/pipelines/helpers/block.rb
buildkite-builder-4.2.1 lib/buildkite/pipelines/helpers/block.rb
buildkite-builder-4.2.0 lib/buildkite/pipelines/helpers/block.rb
buildkite-builder-4.1.2 lib/buildkite/pipelines/helpers/block.rb