0.02
No release in over 3 years
Low commit activity in last 3 years
Notify danger reports to slack.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
~> 2.14
= 3.0.7
>= 0
~> 10.0
~> 3.4
~> 0.41
~> 2.3
~> 0.8

Runtime

 Project Readme

danger-slack

Notify danger reports to slack.

slack setup

The following steps is required for using danger-slack plugin.

1. create bot in https://my.slack.com/services/new/bot  
2. invite created bot user to channel in slack app

slack.api_token or SLACK_API_TOKEN are the bot's token starting from xoxb-

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')