Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

AnandChowdhary/slack-netlify-trigger

πŸ””πŸŒ Slack Netlify Trigger

Automagically trigger a Netlify build webhook by posting a message on Slack.

Node CI

⭐ Getting started

  1. Fork this repository
  2. Add required environment variables and run the Node.js script
  3. Create a Slack outgoing webhook with the URL (see Outgoing webhooks)
  4. Send the "trigger" message to your Slack channel

Screenshot of trigger message

βš™οΈ Configuration

Add the following environment variables:

  • NETLIFY_WEBHOOK is the Netlify webhook endpoint
  • SLACK_TOKEN is the webhook token provided by Slack
  • GH_PAT is the GitHub Personal Access Token to trigger events

The / endpoint is used to trigger the Netlify webhook, and the /:repo/:event endpoint creates a repository dispatch event.

πŸ‘©β€πŸ’» Development

Build TypeScript:

npm run build # tsc

Run the service on http://localhost:3000:

npm run launch # node dist/index.js

πŸ“„ License

  • Code: MIT Β© Koj
  • "Slack" is a trademark of Slack Technologies, Inc.
  • "Netlify" is a trademark of Netlify, Inc.

Koj

An open source project by Koj.
Furnish your home in style, for as low as CHF175/month β†’

About

πŸ””πŸŒ Trigger a Netlify build webhook from Slack

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published