GithubHelp home page GithubHelp logo

classicvalues / semantic-release-slack Goto Github PK

View Code? Open in Web Editor NEW

This project forked from intuit/semantic-release-slack

0.0 1.0 0.0 971 KB

A plugin for semantic-release that takes a Slack web hook and posts a message when a release is successful

License: MIT License

JavaScript 100.00%

semantic-release-slack's Introduction

@intuit/semantic-release-slack

npm CircleCI Known Vulnerabilities Renovate enabled code style: prettier semantic-release


Post slack notifications to a webhook on success or failure of a semantic-release job

Step Description
verifyConditions Verify the SLACK_WEBHOOK_URL environment variable is set.
success Send a formatted message to the slack webhook provided with information about the most recent release
fail Send a formatted message to the slack webhook if the release fails

Installation

yarn add --dev @intuit/semantic-release-slack

Usage

Add the following to your release.config.js

  "plugins": [
    // ...
   ["@intuit/semantic-release-slack", {
       // These are the available platforms that the package can be downloaded from
       "platforms": ["brew", "npm", "docker"]
   }]
  ],

Ensure you have a webhook url in your process.env under the name SLACK_WEBHOOK_URL. The hook is expected to contain https://hooks.slack.com in the URL. Without this, your release will fail because the plugin won't know where to post to.

Options

Property Type Default Example Description
platforms String[] undefined "platforms": ["brew", "npm"] Available platforms that the package can be downloaded from. Can be anything. Supported emoji
skipCommit String undefined "skipCommit": "^fix\\(deps\\):" Skips notifying when regex matches at least one commit in the release
semverFilter String[] ["major", "minor", "patch"] "semverFilter": ["major", "minor"] Skips releases that do not match one of the configured types
fullReleaseNotes Boolean false "fullReleaseNotes": true Provides the full release notes in slack instead of a link to the release notes

semantic-release-slack's People

Contributors

renovate[bot] avatar semantic-release-bot avatar aghassi avatar hipstersmoothie avatar

Watchers

 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.