A serverless gong with GitHub and Slack webhooks - made for the No Server November Challenge.
When a selected repository in GitHub has a release event, a chosen Slack channel is messaged with a gong! Your final result will look like this:
-
Create a Slack incoming webhook for the channel you want to gong.
-
Set your GitHub webhook secret and Slack webhook URL in
serverless.ymlby replacingREPLACE-WITH-YOUR-SECRET-HEREandREPLACE-WITH-YOUR-SLACK-WEBHOOK-URL-HERE.provider: environment: GITHUB_WEBHOOK_SECRET: REPLACE-WITH-YOUR-SECRET-HERE SLACK_WEBHOOK_URL: REPLACE-WITH-YOUR-SLACK-WEBHOOK-URL-HERE
-
Deploy the service
serverless deploy
-
Configure a webhook on the GitHub repository you want to gong. Setting up a Webhook. Point it at the deployed
/webhookendpoint and select at least theReleasesevent. -
Cut a release on the repository and watch the gong land in Slack! 🔔