Skip to content

A bot that simplifies discussions involving Bugzilla on mattermost

Notifications You must be signed in to change notification settings

badock/BugzillaBot

Repository files navigation

BugzillaBot

Installation

BugzillaBot requires few dependencies:

  • python
  • python-pip

To install python libraries needed by the bot, run the following command:

pip install -r requirements.txt

Configuration

Create a configuration file based on the template located in etc/bot_bugzilla.conf, and move it to one of the following locations:

  • ~/bot_bugzilla.conf
  • /etc/bot_bugzilla.conf
  • /etc/bot_bugzilla/bot_bugzilla.conf

And set variables related to authentication:

[mattermost]
ssl_verify = True
url = https://framateam.org/api/v3
login = _________      # Create a user on the framateam website
password = _________
team = grid5000

:

[bugzilla]
user = _________     # G5K username
password = _________ # G5K password

Run the bot

python main.py

Add the bot to a channel

First, click on the members icon on the right of the channel’s name, then click on Manage members: https://raw.githubusercontent.com/badock/BugzillaBot/master/screenshots/screenshot1.png

Then click on Add new members: https://raw.githubusercontent.com/badock/BugzillaBot/master/screenshots/screenshot2.png

Then write bugzilla on the search bar, select the bugzillabot member and click on Add: https://raw.githubusercontent.com/badock/BugzillaBot/master/screenshots/screenshot3.png

Usage

Display a bug

(bug 8520)

View messages attached to a bug

(bug.msg 8520)

View a list of bugs

(bug (list 8520 8521 7117))

Customize the bot

You can tweak the bot by changing variables in the following file: https://github.com/badock/BugzillaBot/blob/master/mattermost_bot_settings.py

About

A bot that simplifies discussions involving Bugzilla on mattermost

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages