Skip to content

Commit

Permalink
Correctly specify username
Browse files Browse the repository at this point in the history
  • Loading branch information
quantum5 committed Oct 1, 2020
1 parent b4d87de commit 795e54c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
4 changes: 1 addition & 3 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: `<https://github.com/${owner}/${repo} | ${owner}/${repo}>`,
ts: Math.floor(Date.now() / 1000),
},
Expand Down

0 comments on commit 795e54c

Please sign in to comment.