New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

probot-commands

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

probot-commands

A Probot extension that adds slash commands to GitHub

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

Probot: Commands

A Probot extension that adds slash commands to GitHub.

For example, from a comment box someone could type:

Slash commands in a comment box

A Probot app could then use this extension to listen for the remind slash command.

Installation

$ npm install --save probot-commands

Usage

const commands = require('probot-commands')

module.exports = robot => {
  // Type `/label foo, bar` in a comment box for an Issue or Pull Request
  commands(robot, 'label', (context, command) => {
    const labels = command.arguments.split(/, */);
    return context.github.issues.addLabels(context.issue({labels}));
  });
}

FAQs

Package last updated on 20 Jun 2018

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