pantheon-systems / terminus-build-tools-plugin

Manage multidev environments for a Pantheon site using a GitHub PR workflow.
82 stars 68 forks source link

build:comment:add:pr failing #460

Closed antmbraun closed 1 year ago

antmbraun commented 1 year ago

I have the following command in my github actions workflow:

terminus build:comment:add:pr --pr_id=${{github.event.pull_request.number}} --site_url=https://$pantheon_env-$pantheon_site.pantheonsite.io

and it is failing with the following error:

Client error: `POST [https://api.github.com/repos/redacted-name/redacted-web-b2b/commits/395b5ce9a7eaba337b95196d9ad1f65402302413/comments`] resulted in a `422 Unprocessable Entity` response:
{"message":"No commit found for SHA: 395b5ce9a7eaba337b95196d9ad1f65402302413",

I have confirmed that the ${{github.event.pull_request.number}} value is correct.