Sha256: c00c4a7531723cb4644605d5f7043890ad2be96f38e65e6556170bfef29899f9

Contents?: true

Size: 351 Bytes

Versions: 2

Compression:

Stored size: 351 Bytes

Contents

require "octogate/events/base"
require "octogate/gh"

module Octogate
  class Event::PullRequest < Event::Base
    register_event :pull_request, self

    coerce_key :pull_request, GH::PullRequest
    coerce_key :repository,   GH::Repository
    coerce_key :sender,       GH::User

    def default_condition
      action != "closed"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
octogate-0.4.0 lib/octogate/events/pull_request.rb
octogate-0.3.0 lib/octogate/events/pull_request.rb