hubot githubfollow
1.0.0
Hubot脚本以关注GitHub存储库并获取事件通知。该项目基于对REST API进行轮询,因此该脚本可以在GitHub上监视所有公共存储库,而无需Web挂钩。显然,这不是最好的解决方案,但在不拥有存储库的情况下,它提供了更多的可能性。
拥抱阶段,真正的原始实现。对我来说,这是一个RXJS工作台
那是在JS,我在咖啡中闪烁,所以真的很丑吗?
该模块通过NPM安装:
npm install --save hubot-githubfollow
将Hubot-githubfollow添加到您的external-scripts.json中。
[
" hubot-githubfollow "
]为了调用GitHub API,您必须使用有效的GitHub个人访问令牌定义GHF_KEY环境变量
user1>> hubot follow github/hubot
hubot>> Done
https://www.npmjs.com/package/hubot-githubfollow
欢迎任何帮助,我现在没有策略。
如果您想帮助遵循此步骤以配置开发环境。
克隆这个存储库
git clone https://github.com/rixlabs/hubot-githubfollow.git
要插入所有依赖项:
npm install
要运行测试,请输入:
npm test
如果您想尝试Hubot内部的脚本:
在Huot-Githubfollow目录内
npm link
内部的Hubot目录类型:
npm link hubot-githubfollow
将Hubot-githufollow添加到external-scripts.json中。
[
" hubot-githubfollow "
]设置GHF_KEY环境变量
export GHF_KEY=<github Personal access tokens>
使用:
bin/hubot
要在测试后清理,将CD降为Hubot的根并键入:
npm unlink hubot-githubfollow
然后cd到Hubot-GithubFollow root,然后做:
npm unlink