Skip to content

klothoplatform/slack-notifier

Repository files navigation

Klotho slack-notifier bot

A GitHub → Slack notification bot that emphasizes a signal-to-noise ratio. Our bot posts pull request notifications in a thread (one thread per pull request) to keep the chatter down and let you actually keep track of what's going on.

a single message for a pull request, with updates in the message thread

To get up and running quickly, see our installation tutorial.

Building and deploying

Requirements

Building

npm run klotho build

This will compile the TypeScript, run the tests, and run Klotho on the application.

Deploying

  1. Just once, run:

    npm run klotho pulumi config set aws:region <YOUR DESIRED REGION> # e.g. us-east-1
  2. Make sure you have your env set up with AWS credentials (see our tutorial.

  3. npm run klotho pulumi up

Different application names

By default, the Klotho application name (klotho --app ...) is klotho-slack-notifier-bot, and Klotho will compile to a directory ./compiled.

To change this, set an env variable KLOTHO_APP_NAME. If you do, the application name will be what you set in that variable, and Klotho will compile to ./compiled-klotho/$KLOTHO_APP_NAME.

Contributing

We welcome pull requests, or you can open an issue to provide feedback or make a suggestion. You can also find us at our Discord server.

We don't have any formal contribution requirements or style guides yet for pull requests. Please:

  • format your code reasonably
  • add unit tests if reasonable