Skip to content

chatops notify command doesn't seem to like newlines

When running messages such as the one below, Slack states the notify command is invalid:

/chatops run notify ":mega: This is the _candidate_ commit to be released on the 22nd.
https://gitlab.com/gitlab-org/security/gitlab/commits/6dcc1acd5fba09d9b8f5e19f526e2af9892fac8e
Please see the following documentation on what this means:
  * `https://about.gitlab.com/handbook/engineering/releases/#how-can-i-determine-if-my-merge-request-will-make-it-into-the-monthly-release`
  * `https://about.gitlab.com/handbook/engineering/releases/#when-do-i-need-to-have-my-mr-merged-in-order-for-it-to-be-included-into-the-monthly-release`"

This is probably due to the presence of newlines in the message.