Add an extension for notifying Slack.com
Review Request #6024 — Created June 23, 2014 and submitted
Slack.com is a popular business chat service which targets software developers.
One of its neat features is that it integrates with a lot of third-party
services, allowing them to send notifications.This change adds a new extension which integrates Review Board with Slack,
using their "incoming webhooks" integration. This will notify for all of the
usual events, including links to the affected review requests.
Configured this extension in my local devserver and ran through the motions.
Description | From | Last Updated |
---|---|---|
Col: 80 E501 line too long (99 > 79 characters) |
reviewbot | |
Col: 80 E501 line too long (80 > 79 characters) |
reviewbot | |
Col: 80 E501 line too long (82 > 79 characters) |
reviewbot | |
Shouldn't we copyright Beanbag, Inc.? |
chipx86 | |
No blank line here. |
chipx86 | |
Col: 80 E501 line too long (99 > 79 characters) |
reviewbot | |
This is going to break as soon as we do an update that in any way modifies the file. If … |
chipx86 | |
You shouldn't need the default, since RB already defaults to http, and get() will fall back on that. |
chipx86 | |
Do we also need to escape the path? |
chipx86 | |
Since type is a reserved word, we should probably use status or something. |
chipx86 | |
Can we use the ReviewRequest.* constants, like SUBMITTED? |
chipx86 | |
Should compare with BaseComment.OPEN. |
chipx86 | |
No blank line. |
chipx86 | |
Missing periods in the help text. Is there any URL we can link to for finding the webhook URL? The … |
chipx86 | |
We should use from reviewboard.extensions.packaging import setup here. |
chipx86 | |
Let's add the version stuff to rbslack/__init__.py, for consistency and for releases with the new build stuff. |
chipx86 | |
We should attribute this to Beanbag, like the other extensions have. |
chipx86 | |
Col: 80 E501 line too long (91 > 79 characters) |
reviewbot | |
We should switch to "Slack" here and all other places where we refer to their name. The logo shows "#slack," … |
chipx86 | |
We should set released to False up until we do the release. Also, before we label this 1.0, I want … |
chipx86 | |
Should we make this a hidden setting (just an entry in default_settings)? We could then set it to "RBCommons" when … |
chipx86 | |
The wording feels odd. Maybe something like "The name of the channel review request updates are sent to."? |
chipx86 | |
No need for this anymore. |
chipx86 | |
We should also add classifiers to this. There's a brand new classifier we should also provide: Framework :: Review Board |
chipx86 | |
This should be "Slack". |
chipx86 |
- Change Summary:
-
Fix some line length issues.
- Commit:
-
eeeb61a524941c475e20a8b97760799ec02a2a113fc5b3e8b3cb457a408b4075265c730146a5f864
-
Tool: PEP8 Style Checker Processed Files: rbslack/rbslack/admin_urls.py rbslack/rbslack/extension.py rbslack/rbslack/forms.py rbslack/setup.py Ignored Files: rbslack/README.md rbslack/COPYING Tool: Pyflakes Processed Files: rbslack/rbslack/admin_urls.py rbslack/rbslack/extension.py rbslack/rbslack/forms.py rbslack/setup.py Ignored Files: rbslack/README.md rbslack/COPYING
-
-
Can't wait to use this :D
-
-
-
This is going to break as soon as we do an update that in any way modifies the file.
If we need to ship a stable logo image for this somewhere, I'd say let's just stick this in a reliable place in an S3 bucket. Probably the
images.reviewboard.org
bucket somewhere, maybe under arbslack
path so that we don't forget why it's there. -
You shouldn't need the default, since RB already defaults to
http
, andget()
will fall back on that. -
-
-
-
-
-
Missing periods in the help text.
Is there any URL we can link to for finding the webhook URL? The account page somehow?
-
-
Let's add the version stuff to
rbslack/__init__.py
, for consistency and for releases with the new build stuff. -
-
Tool: PEP8 Style Checker Processed Files: rbslack/rbslack/admin_urls.py rbslack/rbslack/__init__.py rbslack/rbslack/forms.py rbslack/rbslack/extension.py rbslack/setup.py Ignored Files: rbslack/README.md rbslack/COPYING Tool: Pyflakes Processed Files: rbslack/rbslack/admin_urls.py rbslack/rbslack/__init__.py rbslack/rbslack/forms.py rbslack/rbslack/extension.py rbslack/setup.py Ignored Files: rbslack/README.md rbslack/COPYING
-
-
Tool: PEP8 Style Checker Processed Files: rbslack/rbslack/admin_urls.py rbslack/rbslack/__init__.py rbslack/rbslack/forms.py rbslack/rbslack/extension.py rbslack/setup.py Ignored Files: rbslack/README.md rbslack/COPYING Tool: Pyflakes Processed Files: rbslack/rbslack/admin_urls.py rbslack/rbslack/__init__.py rbslack/rbslack/forms.py rbslack/rbslack/extension.py rbslack/setup.py Ignored Files: rbslack/README.md rbslack/COPYING
-
-
We should switch to "Slack" here and all other places where we refer to their name. The logo shows "#slack," but all text on their site referencing their service uses "Slack."
-
We should set released to False up until we do the release.
Also, before we label this 1.0, I want to spend some more time using this and testing it in production, and also figure out how we can make this all work well with RBCommons.
-
Should we make this a hidden setting (just an entry in
default_settings
)? We could then set it to "RBCommons" when we get it working there. -
The wording feels odd. Maybe something like "The name of the channel review request updates are sent to."?
-
-
Tool: Pyflakes Processed Files: rbslack/rbslack/admin_urls.py rbslack/rbslack/__init__.py rbslack/rbslack/forms.py rbslack/rbslack/extension.py rbslack/setup.py Ignored Files: rbslack/README.md rbslack/COPYING Tool: PEP8 Style Checker Processed Files: rbslack/rbslack/admin_urls.py rbslack/rbslack/__init__.py rbslack/rbslack/forms.py rbslack/rbslack/extension.py rbslack/setup.py Ignored Files: rbslack/README.md rbslack/COPYING