Skip to content

Commit

Permalink
fix: Fix travis icon on mattermost publish announcement
Browse files Browse the repository at this point in the history
  • Loading branch information
sblaisot committed Oct 12, 2021
1 parent cb1ff2c commit 798fac5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/cozy-app-publish/src/hooks/post/mattermost.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const sendMattermostReleaseMessage = async options => {

const hookURL = process.env.MATTERMOST_HOOK_URL
const channels = getMattermostChannels({ appVersion: options.appVersion })
const iconURL = 'https://travis-ci.com/images/logos/TravisCI-Mascot-1.png'
const iconURL = 'https://files.cozycloud.cc/travis.png'
const username = 'Travis'
const message = getMessage(options)
for (const channel of channels) {
Expand Down
4 changes: 2 additions & 2 deletions packages/cozy-app-publish/src/hooks/post/mattermost.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,15 @@ describe('sendMattermost Post', () => {
await sendMattermostReleaseMessage(commonInfo)
expect(JSON.parse(writeSpy.mock.calls[0][0])).toEqual({
channel: 'gh-notif-appvenger',
icon_url: 'https://travis-ci.com/images/logos/TravisCI-Mascot-1.png',
icon_url: 'https://files.cozycloud.cc/travis.png',
username: 'Travis',
text:
'Application __banks__ version `1.6.1` has been published on space __banks__.\n\n- [Last commit: Beautiful commit title & a beautiful ampersand 😍 ](https://github.com/cozy/cozy-banks/commits/sha1deadbeef)\n- [Job](https://travis.com/cozy/cozy-banks/jobs/jobId1234)'
})
expect(https.request).toHaveBeenCalledWith(
{
headers: {
'Content-Length': 398,
'Content-Length': 379,
'Content-Type': 'application/json'
},
hostname: 'mattermost.cozycloud.cc',
Expand Down

0 comments on commit 798fac5

Please sign in to comment.