You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to make an automation when a user creates a pull request that sends a message to a Slack Channel.
SLACK_CUSTOM_PAYLOAD only admits an string that has to be a JSON, but when I use variables it always returns an 400 error and it does not work, even though the log replaces correctly the variables.
For some of the variables you're trying to set, there are equivalent environment variables such as for author, you can use SLACK_MSG_AUTHOR to specify author. You can find a reference list of all the variables in the readme.
You can specify them using environment variables in the following manner:
Hello!
I am trying to make an automation when a user creates a pull request that sends a message to a Slack Channel.
SLACK_CUSTOM_PAYLOAD only admits an string that has to be a JSON, but when I use variables it always returns an 400 error and it does not work, even though the log replaces correctly the variables.
SLACK_CUSTOM_PAYLOAD: | { "author": "${{ steps.set-payload.outputs.PAYLOAD_AUTHOR }}", "ticket_link": "Example text", "pr_link": "Example text", "description": "Example text", "title": "Example text" }
Log:
Any ideas?
Error sending message: Error on message: 400 Bad Request
The text was updated successfully, but these errors were encountered: