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'); | |
const endpointHost = 'hooks.slack.com'; | |
const endpointPath = 'Your Slack webhook URL Path'; | |
exports.handler = async (event) => { | |
const body = JSON.parse(event.body); | |
const postData = JSON.stringify({ | |
"text": "Update Version History in Figma", | |
"blocks": [ | |
{ |