Skip to content

Instantly share code, notes, and snippets.

@Falkor
Created July 18, 2018 13:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Falkor/8574c6fd18f8d18e57a26b453eccf778 to your computer and use it in GitHub Desktop.
Save Falkor/8574c6fd18f8d18e57a26b453eccf778 to your computer and use it in GitHub Desktop.
bugwarriorrc template document
# bugwarriorrc -- Configuration file for Bugwarrior (see https://bugwarrior.readthedocs.io)
##############################################################################
# General stuff.
[general]
targets = gitlab.<domain>, github.com
# If unspecified, the default taskwarrior config will be used.
#taskrc = /path/to/.taskrc
# Setting this to true will shorten links with http://da.gd/
#shorten = False
# Setting this to True will include a link to the ticket in the description
inline_links = False
# Setting this to True will include a link to the ticket as an annotation
annotation_links = False
# Setting this to True will include issue comments and author name in task
# annotations
annotation_comments = False
# Defines whether or not issues should be matched based upon their description.
# In legacy mode, we will attempt to match issues to bugs based upon the
# presence of the '(bw)' marker in the task description.
# If this is false, we will only select issues having the appropriate UDA
# fields defined (which is smarter, better, newer, etc..)
legacy_matching = False
# log.level specifies the verbosity. The default is DEBUG.
# log.level can be one of DEBUG, INFO, WARNING, ERROR, CRITICAL, DISABLED
log.level = ERROR
#DEBUG
# If log.file is specified, output will be redirected there. If it remains
# unspecified, output is sent to sys.stderr
#log.file = /var/log/bugwarrior.log
# Configure the default description or annotation length.
#annotation_length = 45
##############################################################################
# Use hooks to run commands prior to importing from bugwarrior-pull.
# bugwarrior-pull will run the commands in the order that they are specified
# below.
#
# pre_import: The pre_import hook is invoked after all issues have been pulled
# from remote sources, but before they are synced to the TW db. If your
# pre_import script has a non-zero exit code, the `bugwarrior-pull` command will
# exit early.
[hooks]
#pre_import = /home/someuser/backup.sh, /home/someuser/sometask.sh
##############################################################################
# This section is for configuring notifications when bugwarrior-pull runs,
# and when issues are created, updated, or deleted by bugwarrior-pull.
# Three backends are currently supported:
#
# - growlnotify (v2) Mac OS X "gntp" must be installed
# - gobject Linux python gobject must be installed
#
# To configure, adjust the settings below. Note that neither of the #
# "sticky" options have any effect on Linux. They only work for
# growlnotify.
#[notifications]
#notifications = True
#backend = notify
#growlnotify
# finished_querying_sticky = False
# task_crud_sticky = True
# only_on_new_tasks = True
##############################################################################
[gitlab.<domain>]
service = gitlab
gitlab.login = <login>
gitlab.token = <token>
gitlab.host = gitlab.<domain>
gitlab.import_labels_as_tags = True
#gitlab.label_template = gitlab_{{label}}
#gitlab.include_repos =
#gitlab.exclude_regex = *
#gitlab.only_if_author = <login>
gitlab.only_if_assigned = <login>
gitlab.filter_merge_requests = False
gitlab.description_template = {{gitlabtype|capitalize}}#{{gitlabnumber}}: {{gitlabtitle}}
gitlab.project_template = GL/{{gitlabrepo}}
##############################################################################
[github.com]
service = github
github.username = <login>
github.login = <login>
github.token = <token>
github.description_template = GH/{{githubtype|capitalize}}#{{githubnumber}}: {{githubtitle}}
github.project_template = {{githubrepo}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment