Logging#55
Open
techman83 wants to merge 7 commits intopjf:masterfrom
Open
Conversation
pjf
added a commit
to pjf/bugwarrior
that referenced
this pull request
Mar 1, 2017
The default strings generated by BugWarrior for github use a short 'PR'
or 'Is' string to indicate if something is a pull-request or issue
respectively. However no UDA exists allowing the user to use these when
specifying their own description_templates in their `.bugwarriorrc`.
This change adds a `githubshorttype` UDA.
Sample config:
description_template = {{githubrepo}}#{{githubnumber}} ({{githubshorttype}}) {{githubtitle}}
Snippet of resulting output (dry-run):
INFO:bugwarrior.db:Adding task pjf/exobrain#50 (Is) Personal log classifying agent (not really)
INFO:bugwarrior.db:Adding task pjf/masterwork-dwarf-fortress#122 (Is) Wild orc traders keep bringing barrels of fire (not really)
INFO:bugwarrior.db:Adding task pjf/exobrain#55 (PR) Logging (not really)
INFO:bugwarrior.db:Adding task pjf/masterwork-dwarf-fortress#125 (Is) Simple wood option doesn't apply to orcs. (not really)
INFO:bugwarrior.db:Adding task Dual-Life/autodie#51 (PR) POD update (not really)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Working logging concept. Service for monitoring the bus and library for easy including in other scripts/libraries.
Changes/suggestions welcome :)