Node-1st-gen/github-to-slack/README.md
This sample shows how to automatically post GitHub commits to a Slack channel using an HTTPS Cloud Function.
Further reading:
See file functions/index.js for the code.
The dependencies are listed in functions/package.json.
To test this integration:
firebase use --add and select your project.cd functions; npm install; cd -https://us-central1-<FIREBASE_PROJECT_ID>.cloudfunctions.net/githubWebhookapplication/jsonA_SECRET_YOU_DEFINEJust the push event.slack.webhook_url and github.secret Google Cloud environment variables to match the email and password of the Gmail account used to send emails. For this use:
firebase functions:secrets:set SLACK_WEBHOOK_URL
firebase functions:secrets:set GITHUB_SECRET
firebase deploy