From 795e54cb43103a498c0ab2fade97046f494861ea Mon Sep 17 00:00:00 2001 From: Quantum Date: Wed, 30 Sep 2020 21:21:42 -0400 Subject: [PATCH] Correctly specify username --- index.js | 2 ++ src/utils.js | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 4ad149c0..d193b250 100644 --- a/index.js +++ b/index.js @@ -28,6 +28,8 @@ const { buildSlackAttachments, formatChannelName } = require('./src/utils'); const apiMethod = Boolean(messageId) ? 'update' : 'postMessage'; const args = { + username: 'GitHub Actions', + icon_url: 'https://image.flaticon.com/icons/png/512/25/25231.png', channel: channelId, attachments, }; diff --git a/src/utils.js b/src/utils.js index 6ec4db1a..46579629 100644 --- a/src/utils.js +++ b/src/utils.js @@ -42,9 +42,7 @@ function buildSlackAttachments({ status, color, github }) { short: true, }, ], - username: 'GitHub Actions', - icon_url: '', - footer_icon: 'https://image.flaticon.com/icons/png/512/25/25231.png', + footer_icon: 'https://github.githubassets.com/favicon.ico', footer: ``, ts: Math.floor(Date.now() / 1000), },