danger-slack

Notify danger reports to slack.

Installation

$ gem install danger-slack

Usage

How to set your Slack API token

In Dangerfile,

slack.api_token = 'SLACK_API_TOKEN'

or

Set Environment variable SLACK_API_TOKEN

methods

Get channels

slack.channels

Get members

slack.members

Get groups

slack.groups

Notify danger reports to slack

slack.notify(channel: '#your_channel')

Post message to slack

slack.notify(channel: '#your_channel', text: 'hello danger')