🚀 Launch Week Day 2:Introducing Custom Tabs for Org Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

microbot

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

microbot

Cyborg microbot that posts a comment to a GitHub issue.

Source
npmnpm
Version
0.1.1
Version published
Weekly downloads
0
Maintainers
2
Weekly downloads
 
Created
Source

microbot NPM version NPM monthly downloads NPM total downloads

Cyborg microbot that posts a comment to a GitHub issue.

Install

Install with npm:

$ npm install --save microbot

Install with yarn:

$ yarn add microbot

Usage

var comment = require('microbot')();

API

.comment

Cyborg microbot plugin for making a comment on a GitHub issue.

Params

  • config {Object}: Configuration object for passing authentication information to bot-github-auth.
  • returns {Function}: Plugin function that may be used in a Promise chain.

Example

// given an issue opened event payload
return Promise.resolve(payload)
  .then(comment(function(payload) {
    return "Hi " + payload.issue.user.login;
  }))
  .then(function(response) {
    console.log(response.results);
    //=> GitHub response payload
  });

About

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Please read the contributing guide for advice on opening issues, pull requests, and coding standards.

Building docs

(This project's readme.md is generated by verb, please don't edit the readme directly. Any changes to the readme must be made in the .verb.md readme template.)

To generate the readme, run the following command:

$ npm install -g verbose/verb#dev verb-generate-readme && verb

Running tests

Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:

$ npm install && npm test

Author

Brian Woodward

License

Copyright © 2017, Brian Woodward. Released under the MIT License.

This file was generated by verb-generate-readme, v0.6.0, on May 23, 2017.

Keywords

bot

FAQs

Package last updated on 23 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts