Sha256: bd894bee93e3593e24c3b564f88609e4fa41354e4b4ea410d8682b87b4038ab2

Contents?: true

Size: 538 Bytes

Versions: 10

Compression:

Stored size: 538 Bytes

Contents

# frozen_string_literal: true
module Shipit
  module Webhooks
    module Handlers
      class CheckSuiteHandler < Handler
        params do
          requires :check_suite do
            requires :head_sha, String
            requires :head_branch, String
          end
        end
        def process
          stacks.where(branch: params.check_suite.head_branch).each do |stack|
            stack.commits.where(sha: params.check_suite.head_sha).each(&:schedule_refresh_check_runs!)
          end
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
shipit-engine-0.39.0 app/models/shipit/webhooks/handlers/check_suite_handler.rb
shipit-engine-0.38.0 app/models/shipit/webhooks/handlers/check_suite_handler.rb
shipit-engine-0.37.0 app/models/shipit/webhooks/handlers/check_suite_handler.rb
shipit-engine-0.36.1 app/models/shipit/webhooks/handlers/check_suite_handler.rb
shipit-engine-0.36.0 app/models/shipit/webhooks/handlers/check_suite_handler.rb
shipit-engine-0.35.1 app/models/shipit/webhooks/handlers/check_suite_handler.rb
shipit-engine-0.35.0 app/models/shipit/webhooks/handlers/check_suite_handler.rb
shipit-engine-0.34.0 app/models/shipit/webhooks/handlers/check_suite_handler.rb
shipit-engine-0.33.0 app/models/shipit/webhooks/handlers/check_suite_handler.rb
shipit-engine-0.32.0 app/models/shipit/webhooks/handlers/check_suite_handler.rb