Skip to content

kuy/acot-reporter-slack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

acot-reporter-slack

NPM Status CI

A Slack reporter for acot.

Usage

Installation

Install via npm:

$ npm install --save acot-reporter-slack

Install via yarn:

$ yarn add acot-reporter-slack

Configuration

module.exports = {
  reporter: {
    use: "slack",
    with: {
      url: "https://hooks.slack.com/services/XXX/XXX/XXX",
    },
  },
};
  • url: URL of Slack's incoming webhook (Required)

Development

TODOs

  • Minimum notification
  • Provide option to configure Slack's incoming webhook URL
  • Report summary by rules
  • Decorate notification using Block Kit
  • Options to specify events of notification

Release

  1. Bump version in package.json
  2. Commit with message Release x.x.x and push to main branch
  3. GitHub Actions publishes new version to NPM automatically