diff --git a/lib/action.rb b/lib/action.rb index 5ba60e1..5eb0ad4 100644 --- a/lib/action.rb +++ b/lib/action.rb @@ -17,7 +17,7 @@ if config.event_payload['action'] == 'opened' || config.event_payload['action'] == 'synchronize' puts 'Pull request is opened or synchronized' puts '=============================================' - PrDeployCheck.base_check(config, 'issues', config.event_payload[config.event_name]['head']['sha']) + PrDeployCheck.base_check(config, 'issues', config.event_payload['pull_request']['head']['sha']) else puts 'Pull request is labeled' puts '============================================='