It notifies GitHub issue created event to Slack.
- Google Cloud Functions
- Copy ./config.json.sample to ./config.json
- Edit ./config.json
- webhook_url: Slack incoming webhook url (See https://api.slack.com/incoming-webhooks)
- validation.action: GitHub issue event (e.g. opened)
- validation.labelName: GitHub label name
- Deploy to Google Cloud Functions
- Setting GitHub Webhooks
- Open repo
- Select
Webhooks
- Select
Add webhook
- Payload URL: Cloud Function URL
- Content type: application/json
- Let me select individual events > Issues
- Add webhook
$ gcloud functions deploy notifyGithubIssueToSlack --trigger-http --runtime=nodejs8