Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Automatically link bug tracker references.

Project Description

Automatically link bug/issue references in content to a tracker.

By default it will link pull-requests and issues for github in the following formats:

* I should reiview PR mozilla/bedrock#1.
* Don't forget to watch issue twbs/bootstrap#2.

It will also link to Mozilla’s bugzilla instance:

Need a laugh? Read bug 765645.

You can easily replace these or add to them with a setting:

BUG_TRACKERS = {
    # key is the regex
    r'issue +(?P<bug_repo>[a-z1-9-_/]+)#(?P<bug_id>\d+)':
    # value is URL template with keywoard substitutions
    'https://github.com/{bug_repo}/issue/{bug_id}',
}

You can also import BUG_TRACKERS from pelican_bugs and modify it. If you need to alter how the links look, you can set BUG_LINK_TEMPLATE. The link template can use bug_url and bug_text keywords:

# default template
BUG_LINK_TEMPLATE = '<a href="{bug_url}">{bug_text}</a>'
Release History

Release History

This version
History Node

0.2

History Node

0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pelican-link-bugs-0.2.tar.gz (2.6 kB) Copy SHA256 Checksum SHA256 Source Jun 17, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting