lib/danger/ci_source/github_actions.rb in danger-8.1.0 vs lib/danger/ci_source/github_actions.rb in danger-8.2.0

- old
+ new

@@ -19,10 +19,11 @@ def self.validates_as_ci?(env) env.key? "GITHUB_ACTION" end def self.validates_as_pr?(env) - env["GITHUB_EVENT_NAME"] == "pull_request" + value = env["GITHUB_EVENT_NAME"] + value == "pull_request" || value == "pull_request_target" end def supported_request_sources @supported_request_sources ||= [Danger::RequestSources::GitHub] end