/Slackzilla

Simple Bugzilla extension that posts messages to Slack/Mattermost when a bug changes

Primary LanguagePerl

Slackzilla

This Bugzilla extension does one very simple thing: Posts messages to Slack/Mattermost whenever a user changes a bug.

Instructions

  1. Clone this project into your bugzilla extensions directory. Don't worry, the disabled file will prevent the extension from being loaded (which is wise, since you need to configure it first).
  2. Get an incoming webhook token (copy the full URL) and put it in $CONFIG{'slackURI'} in Extension.pm. (Yes, this is ugly. Hopefully one day this can be configured directly from a template in the bugzilla administration panel.)
  3. Change the remaining settings (channel, username, bugzillaURI).
  4. Adjust the message format to your liking (optional). The Bugzilla API documents can be very limited. If you know Perl you might also want to take a peak at the Bugzilla source code or other extension implementations.
  5. Remove the disabled file.
  6. Create a new bug or edit a bug and watch the extension fail miserably with a Perl error message.
  7. Fix your or my mistake
  8. Enjoy

Limitations

Yes, most certainly! Contributions are welcome!