Giter Site home page Giter Site logo

k3v-w / bitrise-step-slack Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rad3ks/bitrise-step-slack

0.0 2.0 0.0 85 KB

A next-gen Slack webhook step for Bitrise

Home Page: https://netguru.co/opensource

License: MIT License

Ruby 95.42% Shell 4.58%

bitrise-step-slack's Introduction

bitrise-step-slack

A next-gen Slack webhook step for Bitrise.

Features

  • All commit information included: Messages include commit hash, author, branch and, of course, message.
  • Attachment-powered: Take advantage of rich message attachments formatted according to build status.
  • JIRA task extraction: The step scans your branch name for JIRA task ID and includes it in the message.
  • Xcode scheme extraction: Messages include information about Xcode scheme used to build your project.

Upcoming features

Usage

bitrise.yml

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

steps:
  - git::https://github.com/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.

Environment variables

The step supports the following custom environment variables, which may be set in bitrise.yml or in Bitrise.io UI editor:

  • JIRA_DOMAIN: The domain of your JIRA installation (found in the URL, e.g. https://JIRA_DOMAIN.atlassian.net)
  • JIRA_PROJECT_KEY: The key of your JIRA project, used to scan branch names for task IDs.

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.

bitrise-step-slack's People

Contributors

akashivskyy avatar viktorbenei avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.