Good afternoon!
Can you please tell me if there is any way to send a message to Slack with the mention (@USERNAME) of a specific user?
The goal is to be able to send a message to the person in Slack who initiated the launch of the pipeline. This will perform a condition check at the end. For example:
- step: Some-step-name
name: Some name
script:
- ...
- if [ "$CHECK_ERRPR" != '"ERROR"' ]; then exit 0 ; fi
- pipe: atlassian/slack-notify:2.3.0
variables:
WEBHOOK_URL: $WEBHOOK_URL
MESSAGE: '"[${ENVIRONMENT_NAME}] problem with something"'
I'd like to understand how when Bitbucket and Slack connect, messages can notify certain users, and I can't figure out how to identify user data (email for example) in the Bitbucket API with which I could identify the same user in Slack and get their ID using the Slack API.