Skip to content

Commit

Permalink
Merge pull request #17 from simplybusiness/bug-fix
Browse files Browse the repository at this point in the history
Use correct element
  • Loading branch information
addersuk authored Sep 10, 2021
2 parents 9d8c231 + 5494ac7 commit 6651b0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/action.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 '============================================='
Expand Down

0 comments on commit 6651b0b

Please sign in to comment.