Skip to content

rad3ks/bitrise-step-slack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bitrise-step-slack

A next-gen Slack webhook step for Bitrise.

Usage

bitrise.yml

To use this step in your Bitrise workflow, prefix the step name with a Git URL of this repository:

steps:
  - git::[email protected]:netguru/bitrise-step-slack.git@master:
      title: slack
      inputs:
        - webhook_url: https://team.slack.com/...
        - channel: "#general"

bitrise.io

As bitrise.io doesn't allow to add a custom step using the UI Workflow Editor, use the YAML editor to manually add the step to the workflow. Follow the guide above.

Bot user icon

If you want to see a custom bot icon, like on the screenshot above, you need to add a custom :bitrise: emoji for your Slack team. You can find the default one in resources/icon.png.

We're planning to add support for custom emoji/URL icons for your bot user as soon as possible.

Development

Requirements

This step requires the following pre-installed dependencies:

Configuration

The step reads its configuration from environment. Since it uses dotenv, you can configure your step by duplicating .env.default file into a .env file and edit the values in there.

Keep in mind that .env file is ignored by Git, so you can put sensitive information (such as webhook URL) in there. It will not be committed.

Running

Run your step by executing step.sh file:

$ ./step.sh

Dependencies

The dependencies are installed automatically when you run step.sh.

Committing

This repository uses git-flow and protects develop and master branches from force pushes, which means the whole development process is pull-request-driven.

The standard code review procedures are in place as well (although perhaps it should be done by Ruby developers).

About

This project is made with <3 by Netguru.

License

Licensed under the MIT License. See LICENSE.MD for more info.

About

A next-gen Slack webhook step for Bitrise

Resources

Stars

Watchers

Forks

Packages

No packages published