probot-issue-commands
v1.0.2
Published
A Probot extension to make it easier to working with issue commands
Downloads
6
Readme
Probot: Issue Commands
A Probot extension to make it easier to working with issue commands.
Installation
$ npm add probot-issue-commands
Usage
const { addCommand } = require('probot-issue-commands')
// Type `closes #1, and owner/repo#2`
addCommand(robot, /clos(es|ing)/, (context, issues) => {
console.log(issues)
// ['#1','owner/repo#2', ...]
})
Like it?
Give it a star(:star:) :point_up_2:
License
MIT © Ahmed T. Ali