Skip to content

Run a check suite on a PR merge commit #24520

Discussion options

You must be logged in to vote
francescomari:

EDIT I found out that it is possible to list the commits in a PR (possibly following paginations, if needed) and figure out the SHA of the last commit in the PR. Once the SHA of the last commit is determined, it is possible to start a check run on the commit, which will trigger the expected events. It is quite nice to perform these actions for PR events “opened”, “synchronized” (to react to new commits being pushed to the PR), and “reopened” (to trigger the check runs if a closed PR is reopened).

Glad that you found your own solution to this. I’m highlighting this in case anyone else stumbles across your question and has the same issue. Thank you for sharing it with us.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment