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