@cloudflare/megaphone
Chat cli for announcing releases from CI
Last updated a month ago by cf-ci-write .
none · Original npm · Tarball · package.json
$ cnpm install @cloudflare/megaphone 
SYNC missed versions from official npm registry.

???? cli

Description

A cli for yelling about things (like release notifications) in chat.

This library was created as an alternative to doing raw curl calls in CI scripts.

Installation

$ npm install @cloudflare/megaphone

Usage

$ megaphone --bot eve "Releasing a thing!"  # or...
$ megaphone -b eve "Releasing a thing!"

# Specify a specific thread
$ megaphone --bot eve --thread <thread_id> "Releasing a thing!"

Configuration

In order to get meaningful results about the state of internationalization of a repo, there are some configuration that the i18n command relies on.

The the first thing the i18n command does is to locate the i18n.config.js config file closest to the directory from which the command is run.

The config file is expected to have a shape like:

module.exports = {
{
  bots: {
    alice: 'https://chat.googleapis.com/v1/spaces/AAAAqKuBJzw/messages?key=<alice_key>&token=<some_token>',
    bob: 'https://chat.googleapis.com/v1/spaces/AAAAqKuBJzw/messages?key=<alice_key>&token=<some_token>'
  }
};

The bots object contains key value pairs of bot names and the webhook url associated with each. These urls can be found in gchat. Note that webhook urls are specific to a space.

Current Tags

  • 0.0.19                                ...           latest (a month ago)

15 Versions

  • 0.0.19                                ...           a month ago
  • 0.0.18                                ...           2 months ago
  • 0.0.17                                ...           2 months ago
  • 0.0.16                                ...           3 months ago
  • 0.0.14                                ...           4 months ago
  • 0.0.12                                ...           4 months ago
  • 0.0.11                                ...           7 months ago
  • 0.0.10                                ...           7 months ago
  • 0.0.9                                ...           a year ago
  • 0.0.8                                ...           a year ago
  • 0.0.7                                ...           a year ago
  • 0.0.6                                ...           a year ago
  • 0.0.4                                ...           a year ago
  • 0.0.3                                ...           a year ago
  • 0.0.2                                ...           2 years ago

Copyright 2014 - 2016 © taobao.org |