A Hubot script that keeps PRs (and updates like comments) in one Slack thread.
From your hubot folder:
npm install --save hubot-github-slack-pr-threads
Then, in your
external-scripts.json file, add:
"hubot-github-slack-pr-threads" to the list.
Create a new webhook for your
myuser/myrepo repository at:
Set the webhook url to: <HUBOT_URL>:<PORT>/hubot/gh-pull-requests?room=myslackroom
You can replace
myslackroom with any valid slack room that your hubot is in
For example, if your hubot lives at myhubot.herokuapp.com, then you will set the webhook URL to: http://myhubot.herokuapp.com/hubot/github-repo-listener?room=development
Make sure to use "application/json" as type.
SECURITY WARNING: This script does not currently validate the Github Secret. PRs are welcome!
You can use
./scripts/github_webhook_simulator.js event_name to emit different events.
pull_request_review_comment are the most useful ones.
Marek Ventur marekventur
MIT License; see LICENSE for further details.