tag:help.appveyor.com,2012-11-13:/discussions/questions/742-yml-notification-templateAppVeyor: Discussion 2015-11-16T02:06:33Ztag:help.appveyor.com,2012-11-13:Comment/354117452014-11-29T00:45:26Z2014-11-29T00:45:26ZYML Notification Template<div><p>For every notification provider there is "default" hard-coded
template that is used in case custom template was not specified.
Default templates work for the most people.</p>
<p>And you can set your custom template for, say, displaying some
additional info about build results.</p>
<p>Let me know if I correctly understood your question.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/354117452014-11-29T10:17:27Z2014-11-29T10:17:27ZYML Notification Template<div><p>Feodor,</p>
<p>In our slack channel appveyor messages are not displaying
correctly for us, the _ are at beginning and end but it is not
being formatted italics.</p>
<p>[cid:F852B942-8C89-48C7-BD58-C0CCED6FC1FB]</p>
<p>I would I go about creating a custom template? Would I formatted
on “template:” line, how I would like to see it in the
mustache syntax? How are line breaks handled? and indenting? do i
just use the slack formatting <em>bold</em> <em>italics</em>
‘code’
‘’’performed’’’ etc.</p>
<p>Is there a full list of variables?</p>
<p>Thanks<br>
Kevin</p></div>kevintag:help.appveyor.com,2012-11-13:Comment/354117452014-11-30T02:37:35Z2014-11-30T02:37:35ZYML Notification Template<div><p>To specify multi-line value in YML use pipe, like shown here:
<a href=
"https://github.com/FeodorFitsner/dacpac-sample/blob/master/appveyor.yml#L12-L23">
https://github.com/FeodorFitsner/dacpac-sample/blob/master/appveyor...</a></p>
<p>Data model is <code>eventData</code> field from Webhook payload:
<a href=
"http://www.appveyor.com/docs/notifications#message-template">http://www.appveyor.com/docs/notifications#message-template</a></p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/354117452014-11-30T02:56:54Z2014-11-30T02:56:54ZYML Notification Template<div><p>Re: italics - looks like an issue on Slack side. <a href=
"https://api.slack.com/docs/formatting">The last section of
formatting spec</a> says <em>"By default bot message text will be
formatted..."</em> and AV posts just messages, not attachments.</p>
<p>I've contacted Slack support to clarify that.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/354117452014-12-01T01:26:29Z2014-12-01T01:26:29ZYML Notification Template<div><p>Found the issue - it's multi-line commit message that breaks
italics (or any other) formatting. Will deploy update early next
week.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/354117452014-12-09T19:46:42Z2014-12-09T19:46:42ZYML Notification Template<div><p>The fix has been deployed.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/354117452014-12-09T20:28:17Z2014-12-09T20:28:17ZYML Notification Template<div><p>Feodor,</p>
<p>Thanks for the update and working on this.</p>
<p>Kevin</p></div>kevintag:help.appveyor.com,2012-11-13:Comment/354117452015-07-02T19:37:46Z2015-07-02T19:37:46ZYML Notification Template<div><p>Feodor,</p>
<p>In Notification Yml for Slack is there a way to set
chat.postMessage method params directly? Looking to use the
Attachment.</p>
<p>I can roll my own via PS, but I am wondering you if might
already included a way to access it.</p>
<p>Is the AppVeyor icon green/red/blue available for public
consumption, notifications?</p></div>kevintag:help.appveyor.com,2012-11-13:Comment/354117452015-07-02T21:01:36Z2015-07-02T21:01:36ZYML Notification Template<div><p>It can't be set from YML.</p>
<p>You can use the images, of course:<br>
<a href="https://ci.appveyor.com/app/images/appveyor-blue-48.png">https://ci.appveyor.com/app/images/appveyor-blue-48.png</a><br>
<a href="https://ci.appveyor.com/app/images/appveyor-blue-72.png">https://ci.appveyor.com/app/images/appveyor-blue-72.png</a><br>
<a href="https://ci.appveyor.com/app/images/appveyor-green-48.png">https://ci.appveyor.com/app/images/appveyor-green-48.png</a><br>
<a href="https://ci.appveyor.com/app/images/appveyor-green-72.png">https://ci.appveyor.com/app/images/appveyor-green-72.png</a><br>
<a href="https://ci.appveyor.com/app/images/appveyor-red-48.png">https://ci.appveyor.com/app/images/appveyor-red-48.png</a><br>
<a href="https://ci.appveyor.com/app/images/appveyor-red-72.png">https://ci.appveyor.com/app/images/appveyor-red-72.png</a></p></div>Feodor Fitsner