gitlab-ci-discord-webhook icon indicating copy to clipboard operation
gitlab-ci-discord-webhook copied to clipboard

New custom message

Open dceldran opened this issue 11 months ago • 0 comments

Hi,

It would be possible to add a custom message that sends to discord notification in the script third parameter? For example in my case i use gitlab ci to install in my production/sandbox environments. In case of production environments it triggers when i create a new tag, for example v1.0.5 and i add a message into the tag explaining the new features/fixes of that version of my app (i use that message as changelog). After the deployment is finished i want to send discord notification to tell all the team that the update is completed. I know that gitlab has the predefined variable CI_COMMIT_TAG_MESSAGE that contains the tag message and i like to print this message inside discord notification because all my team can see the changelog of that version.

Something like ./send.sh success $WEBHOOK_URL $CI_COMMIT_TAG_MESSAGE

And maybe it's also useful to some other users to can print a custom message as third parameter.

Thanks!

dceldran avatar Dec 27 '24 11:12 dceldran