https://cypress.io logo
GHA Custom Docker Image - No Commit Message on Cyp...
# i-need-help
e
I created custom docker image to use within our GHA workflows, and I noticed the Cypress Dashboard commit messages are empty. I understand that generally that is pulled from
.github
location which isn't on the docker container image. How can I go about adding that commit message back to Cypress dashboard?
a
Can you confirm which Docker container you are using?
e
Im using a custom docker container I created.
a
From
cypress/factory
(https://hub.docker.com/r/cypress/factory/) or completely custom?
And also, to confirm which version of Cypress GHA are you using? The latest release was just a few hours ago.
e
Complete custom, using Cypress 12.5.1 on Debian.
Looking into this now, but I think it may be helpful to solve my issue https://cypresstips.substack.com/p/use-a-custom-message-for-cypress
a
You can overwrite the commit message sent to Cypress Cloud by setting
COMMIT_INFO_MESSAGE: ${{github.event.pull_request.title}}
as an environment variable. We also recommend adding
COMMIT_INFO_SHA
to re-enable Cypress bot PR comments: https://github.com/cypress-io/github-action/issues/124
e
@adventurous-dream-20049 I appreciate the help. I tried using that within the
env
of my
uses: cypress-io/github-action@v5
step and the commit message is still not showing up in dashboard.
Actually I was able to get the commit message to show up with
${{ github.event.head_commit.message }}
but using
${{github.event.pull_request.title}}
didn't work.
Oh duh, this is probably because Im using a push event to trigger this flow while testing and didn't create a PR. I think this has me sorted now. Thanks again for your time @adventurous-dream-20049
a
No worries at all! Just happy to be able to help. I am so glad you were able to get it working!
2 Views