Skip to content

Instantly share code, notes, and snippets.

@pinalbhatt
Created April 13, 2020 09:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pinalbhatt/f10b5e95e5c4b8ee66ec0d386eb42e4d to your computer and use it in GitHub Desktop.
Save pinalbhatt/f10b5e95e5c4b8ee66ec0d386eb42e4d to your computer and use it in GitHub Desktop.
slack GHA notification
{
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": ":github: Actions - *predefined message*:\ncat - info, error, broadcast"
},
"accessory": {
"type": "image",
"image_url": "https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcR0syM84yMHZY6ZpmKgMIlUpEj5vibeBi_897KKvMX37lms_ZsI&usqp=CAU",
"alt_text": "palm tree"
}
},
{
"type": "section",
"fields": [
{
"type": "mrkdwn",
"text": "*Repo:*\nComputer (laptop)"
},
{
"type": "mrkdwn",
"text": "*Branch:*\nSubmitted Aut 10"
},
{
"type": "mrkdwn",
"text": "*Event:*\nMar 10, 2015 (3 years, 5 months)"
},
{
"type": "mrkdwn",
"text": "*Author:*\nAll vowel keys aren't working."
},
{
"type": "mrkdwn",
"text": "*Workflow:*\nAll vowel keys aren't working."
}
]
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Message:*\nThis is a mrkdwn section block :ghost: *this is bold*, and ~this is crossed out~, and *<https://google.com|this is a link>*"
}
},
{
"type": "context",
"elements": [
{
"type": "mrkdwn",
"text": "Powered by Dragon Notification Service"
}
]
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Take a look at this image."
},
"accessory": {
"type": "image",
"image_url": "https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcQass1mZPNJmdfHfaUt0z5VY78bG0z79Y2S28MRzt8fyzipRAz_&usqp=CAU",
"alt_text": "palm tree"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Take a look at this image."
},
"accessory": {
"type": "image",
"image_url": "https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcTghhv4H4t4ufRvtzJAXGscEsiZ0ANiKNWEK_Cnu2TgymW0Dwd-&usqp=CAU",
"alt_text": "palm tree"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment