klank
tool to notify artifact to pr
Last updated 5 months ago by naturalclar .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install klank 
SYNC missed versions from official npm registry.

:hammer_and_wrench: Klank

CircleCI Greenkeeper badge npm version

Klank is a tool that will send notification to Pull Requests and Slack channel when a Pull Request is made. It will send the url of the CircleCI artifact.

This repository is inspired by expo-qr-notify by @watanabeyu

It can be used to send a link of latest storybook built in the Pull Request.

:package: Installation

yarn add -D klank

:book: Example

In order to user Klank, you will need to set up a CircleCI project.

In your Project Settings -> Environment Variables, enter your Circle CI API Token as CIRCLE_TOKEN, and Github API Token as GITHUB_TOKEN

In your config.yml for CircleCI, add commands to specify the path that contains the artifact you'd like to notify.

In your package.json, specify the file you'd like to notify

Screenshot 2019-03-18 15 10 34

When you send a Pull Request, the account tied to your GITHUB_TOKEN will send a link of the artifact.

Slack Integration

Klank can also notify your CircleCI artifact to your slack channel!

Create an incoming webhook for your slack channel that you would like to notify.

Add the webhook URL as SLACK_WEBHOOK in your environment variables in CircleCI Project Settings.

Screenshot 2019-03-18 14 55 21

:green_heart: Special Thanks

Special Thanks to @Leko for the original PR notification script.

Current Tags

  • 0.0.5                                ...           latest (5 months ago)

5 Versions

  • 0.0.5                                ...           5 months ago
  • 0.0.4                                ...           5 months ago
  • 0.0.3                                ...           5 months ago
  • 0.0.2                                ...           8 months ago
  • 0.0.1                                ...           8 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (2)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |