hgs

hubot-github-slack-pr-threads

Hubot script that keeps PRs (and updates like comments) in one Slack thread

Showing:

Popularity

Downloads/wk

3

GitHub Stars

3

Maintenance

Last Commit

4yrs ago

Contributors

1

Package

Dependencies

0

Size (min+gzip)

0.8KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

hubot-github-slack-pr-threads

A Hubot script that keeps PRs (and updates like comments) in one Slack thread.

Screenshot

Installation

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: https://github.com/myuser/myrepo/settings/hooks/new 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!

Local Testing

You can use ./scripts/github_webhook_simulator.js event_name to emit different events. pull_request, pull_request_closed, pull_request_merged, pull_request_reopened and pull_request_review_comment are the most useful ones.

Author

Marek Ventur marekventur

License

MIT License; see LICENSE for further details.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100