wait-for-status-checks
wait-for-status-checks copied to clipboard
pickSHA: Improve pickSHA to handle pull_request_target and push
To support use in pull_request_target target workflows, we need to use the pull_request.head.sha value for check-runs.
We also better support push target workflows by using the after SHA value as it better represents "The SHA of the most recent commit on ref after the push."