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>'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pelican-link-bugs-0.1.tar.gz
(2.6 kB
view details)
File details
Details for the file pelican-link-bugs-0.1.tar.gz
.
File metadata
- Download URL: pelican-link-bugs-0.1.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb4a8ad9754ac7219bf2fe8cb9e1eac123c20604d8b56b3231e257f4149dc63e |
|
MD5 | 0b5c0bf445c5240e853b636cd6ba5db5 |
|
BLAKE2b-256 | 35260126c3ddb6ef12cdc3e718a516dadb7f020ffc33930d1bd50f1c5178e796 |