{"action":"created","issue":{"url":"https://api.github.com/repos/travis-ci/travis-ci/issues/9487","repository_url":"https://api.github.com/repos/travis-ci/travis-ci","labels_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/9487/labels{/name}","comments_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/9487/comments","events_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/9487/events","html_url":"https://github.com/travis-ci/travis-ci/issues/9487","id":313983274,"node_id":"MDU6SXNzdWUzMTM5ODMyNzQ=","number":9487,"title":"Using 'mrkdwn' in a custom Slack template","user":{"login":"tdmalone","id":900469,"node_id":"MDQ6VXNlcjkwMDQ2OQ==","avatar_url":"https://avatars2.githubusercontent.com/u/900469?v=4","gravatar_id":"","url":"https://api.github.com/users/tdmalone","html_url":"https://github.com/tdmalone","followers_url":"https://api.github.com/users/tdmalone/followers","following_url":"https://api.github.com/users/tdmalone/following{/other_user}","gists_url":"https://api.github.com/users/tdmalone/gists{/gist_id}","starred_url":"https://api.github.com/users/tdmalone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdmalone/subscriptions","organizations_url":"https://api.github.com/users/tdmalone/orgs","repos_url":"https://api.github.com/users/tdmalone/repos","events_url":"https://api.github.com/users/tdmalone/events{/privacy}","received_events_url":"https://api.github.com/users/tdmalone/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-04-13T06:26:53Z","updated_at":"2018-10-17T15:12:20Z","closed_at":null,"author_association":"NONE","body":"_Splitting this out from #6930 - original issue is definitely stale but this was a current side problem raised within._\r\n\r\nWhen setting a custom `template` on a Slack notification:\r\n\r\n```\r\n  slack:\r\n    rooms:\r\n      - secure: ..........\r\n    template:\r\n      - \"Build <%{build_url}|#%{build_number}> %{build_id} (<%{compare_url}|%{commit}>) of %{repository}:%{branch} by %{author} %{result} in %{duration}\"\r\n      - \"_%{commit_message}_\"\r\n      - \"*%{message}*\"\r\n```\r\n\r\nIf that template contains 'mrkdwn' (Slack's slightly custom interpretation of markdown), Slack does not render it as such. This is because with message attachments, the Slack API has mrkdwn parsing off by default.\r\n\r\nTherefore it would be great if you could send `\"mrkdwn_in\": [ \"text\" ]` to the Slack API as one of the [message attachment properties](https://api.slack.com/docs/message-formatting#message_formatting)."},"comment":{"url":"https://api.github.com/repos/travis-ci/travis-ci/issues/comments/430668774","html_url":"https://github.com/travis-ci/travis-ci/issues/9487#issuecomment-430668774","issue_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/9487","id":430668774,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMDY2ODc3NA==","user":{"login":"heshamMassoud","id":9512131,"node_id":"MDQ6VXNlcjk1MTIxMzE=","avatar_url":"https://avatars2.githubusercontent.com/u/9512131?v=4","gravatar_id":"","url":"https://api.github.com/users/heshamMassoud","html_url":"https://github.com/heshamMassoud","followers_url":"https://api.github.com/users/heshamMassoud/followers","following_url":"https://api.github.com/users/heshamMassoud/following{/other_user}","gists_url":"https://api.github.com/users/heshamMassoud/gists{/gist_id}","starred_url":"https://api.github.com/users/heshamMassoud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heshamMassoud/subscriptions","organizations_url":"https://api.github.com/users/heshamMassoud/orgs","repos_url":"https://api.github.com/users/heshamMassoud/repos","events_url":"https://api.github.com/users/heshamMassoud/events{/privacy}","received_events_url":"https://api.github.com/users/heshamMassoud/received_events","type":"User","site_admin":false},"created_at":"2018-10-17T15:12:20Z","updated_at":"2018-10-17T15:12:20Z","author_association":"NONE","body":"@BanzaiMan I started a WIP PR here: https://github.com/travis-ci/travis-tasks/pull/160"}}
{"actor":{"display_login":"heshamMassoud"}}