Get Slack notifications whenever someone stars your Github repo! 🌟
This project uses:
- the Serverless Framework;
- Github webhooks; and
- Slack's incoming webhooks.
- Install the Serverless Framework and create a new service from this repo:
$ npm install -g serverless
$ sls create --template-url https://github.com/alexdebrie/stargazer -p stargazer
$ cd stargazer
-
Create an incoming webhook integration in Slack. Copy the webhook URL into
serverless.yml
as theWEBHOOK_URL
environment variable. -
Deploy your Serverless service ⚡️:
$ sls deploy
You'll see an endpoint for your function in the Service Information
section once the deploy is finished.
-
Create a webhook in your preferred Github repository (docs here). Use the endpoint from the previous step as your payload URL.
-
Watch the notifications come in! 😎