I would like some tips on how to add a link to the GitHub commit in the message sent using the slack/status
step. However, it appears that slack no longer supports markdown-formatted links. It would be most useful for us if the slack status messages resembled this:
(From: https://circleci.com/blog/mobile-and-browser-testing-on-circleci-simple-setup-easy-management-increased-confidence/)
Here is my non-working attempt to achieve this with the slack orb:
version: 2.1
orbs:
aws-cli: circleci/aws-cli@1.1.0
slack: circleci/slack@3.4.2
jobs:
deploy:
executor: aws-cli/default
steps:
- checkout
- run:
name: Test the things
command: exit 0
- slack/status:
channel: $SLACK_CHANNEL
failure_message: "Failure: build [$CIRCLE_BUILD_NUM]($CIRCLE_BUILD_URL) of [<<pipeline.git.branch>>](<<pipeline.project.git_url>>/tree/<<pipeline.git.branch>>) _($CIRCLE_USERNAME)_"
success_message: "Success: build [$CIRCLE_BUILD_NUM]($CIRCLE_BUILD_URL) of [<<pipeline.git.branch>>](<<pipeline.project.git_url>>/tree/<<pipeline.git.branch>>) _($CIRCLE_USERNAME)_"