0.2.0 • Published 6 years ago

@sailci/psx-components-slack v0.2.0

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

Slack

Overview

The Slack component will report success or failure for any of the components it wraps.

Valid Props

NameTypeExample
webhookstring'$SLACK_WEBHOOK' or 'https://hooks.slack.com/services/…'

If you have set your Slack webhook as an environment variable then supplying the webhook prop with the name of the environment variable prefixed with $ will cause the Slack component to use that instead.

Example Usage

<job>
  <Slack webhook="https://hooks.slack.com/services/…">
    <Run command="yarn" />
    <Run command="yarn lint" />
    <Run command="yarn test" />
  </Slack>
</job>