redmine plugin for helga
Project description
About
Helga is a Python chat bot. Full documentation can be found at http://helga.readthedocs.org.
This Redmine plugin allows Helga to respond to Redmine ticket numbers in IRC and print information about the tickets. For example:
03:14 < ktdreyer> issue 8825 03:14 < helgabot> ktdreyer might be talking about http://tracker.ceph.com/issues/8825 [ceph-deploy tox tests not working with python-remoto (CEPH_DEPLOY_NO_VENDOR)]
You can specify multiple tickets as well:
03:14 < ktdreyer> issue 123 and issue 456 03:14 < helgabot> ktdreyer might be talking about http://tracker.ceph.com/issues/123 [fix msgr message retry seq numbering] and http://tracker.ceph.com/issues/456 [make dumpjournal functionality usable]
Or more simply, “issues <numbers>,”, like so:
03:14 < ktdreyer> issues 777, 888, and 999 03:14 < helgabot> ktdreyer might be talking about http://tracker.ceph.com/issues/777 [mount hung, tid timed out messages in log], http://tracker.ceph.com/issues/888 [get new sepia machines into autotest pool] and http://tracker.ceph.com/issues/999 [Duplicate Bucket Created]
Installation
This Redmine plugin is available from PyPI, so you can simply install it with pip:
pip install helga-redmine
If you want to hack on the helga-redmine source code, in your virtualenv where you are running Helga, clone a copy of this repository from GitHub and run python setup.py develop.
Configuration
In your settings.py file (or whatever you pass to helga --settings), you must specify a REDMINE_URL. For example:
REDMINE_URL = "http://tracker.ceph.com/issues/%(ticket)s"
The %(ticket)s format string will be replaced with the ticket number.
Optional: Authenticated access
By default, Helga only reads tickets that are publicly accessible. You may optionally give Helga privilieged access to Redmine and allow Helga to read private tickets by setting the REDMINE_API_KEY variable:
REDMINE_API_KEY = "598bde2b1ee7082b5ead63712a9fc41dcc4ea160"
The Redmine software provides each user account with its own API key that looks like a sha1 string. This string can be found by browsing to the “/my/account” page in Redmine.
When REDMINE_API_KEY is set, Helga will be able to read private tickets with using the permissions of the user to whom the API key belongs.
Note: This authentication feature can expose private information (ticket subjects) about your Redmine bugs. If you use this feature, be sure that the networks to which Helga connects are restricted. Everyone in Helga’s channels will see the private information, so the assumption is that they already have rights to read the private tickets.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file helga-redmine-0.0.5.tar.gz
.
File metadata
- Download URL: helga-redmine-0.0.5.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f9514a9e0809a9822cc7c622150a7d72fc7eb45069d8f83c0ddca5288fa265f |
|
MD5 | 626e33b07c8185363bb2a46e2dc834cd |
|
BLAKE2b-256 | f6c8625a7e2611ddc4351d921e6f5a6cfb481425669569f4a12052032d72af04 |