This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const https = require('https') | |
exports.handler = async (event) => { | |
const sns = event.Records[0].Sns.Message | |
let color = '' | |
let message = '' | |
if (sns.includes('build status is FAILED')) { | |
color = '#E52E59' | |
message = 'Release to My Company **production** failed.' | |
} else if (sns.includes('build status is SUCCEED')) { |