commands:一个Probot扩展,将斜杠命令添加到GitHub

时间:2024-06-03 13:56:09
【文件属性】:

文件名称:commands:一个Probot扩展,将斜杠命令添加到GitHub

文件大小:3KB

文件格式:ZIP

更新时间:2024-06-03 13:56:09

probot probot-extension JavaScript

Probot:命令 一个扩展,将斜杠命令添加到GitHub。 例如,有人可以在评论框中键入: 然后,Probot应用程序可以使用此扩展程序来侦听remind斜杠命令。 安装 $ npm install --save probot-commands 用法 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 ( / , * / ) ;


【文件预览】:
commands-master
----.gitignore(31B)
----README.md(795B)
----.github()
--------stale.yml(70B)
----test()
--------index.test.js(3KB)
----package.json(470B)
----index.js(1KB)
----.travis.yml(75B)

网友评论