From 0c90a5dcd57e7934d02c70a9eeb715ba7ce575b5 Mon Sep 17 00:00:00 2001 From: Adam Leach Date: Fri, 10 Sep 2021 16:13:40 +0100 Subject: [PATCH] Handle pull_request_target --- lib/action.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/action.rb b/lib/action.rb index d27afcf..5ba60e1 100644 --- a/lib/action.rb +++ b/lib/action.rb @@ -13,7 +13,7 @@ config = GithubApiConfig.new puts "Event: #{config.event_name} called" case config.event_name - when 'pull_request' + when 'pull_request', 'pull_request_target' if config.event_payload['action'] == 'opened' || config.event_payload['action'] == 'synchronize' puts 'Pull request is opened or synchronized' puts '============================================='