[general]
targets = mozilla_phab, bugzilla_mozilla, bugzilla_mozilla_respond, github_assigned_moz, github_respond_moz, github_assigned_personal, github_respond_personal,  work_gmail, personal_gmail
annotation_links = True
annotation_comments = False
log.level = DEBUG
legacy_matching = False

[github_assigned_moz]
{% raw -%}
service = github
github.username = djmitche
github.login = djmitche
github.query = is:open is:issue assignee:djmitche user:taskcluster user:mozilla user:mozilla-frontend-infra
github.include_user_issues = False
github.include_user_repos = False
github.import_labels_as_tags = True
github.label_template = github_{{label}}
github.default_priority = M
github.project_template = moz
github.description_template = {{githuburl}} {{githubtitle}}
{% endraw -%}
github.password = {{ bugwarrior_github_password }}

[github_respond_moz]
{% raw -%}
service = github
github.username = djmitche
github.login = djmitche
github.query = is:open is:pr review-requested:djmitche user:taskcluster user:mozilla user:mozilla-frontend-infra
github.include_user_issues = False
github.include_user_repos = False
github.import_labels_as_tags = True
github.label_template = github_{{label}}
github.add_tags = respond
github.default_priority = M
github.project_template = moz
github.description_template = {{githuburl}} {{githubtitle}}
{% endraw -%}
github.password = {{ bugwarrior_github_password }}

[github_assigned_personal]
{% raw -%}
service = github
github.username = djmitche
github.login = djmitche
github.query = is:open is:issue assignee:djmitche -user:taskcluster -user:mozilla -user:mozilla-frontend-infra
github.include_user_issues = False
github.include_user_repos = False
github.import_labels_as_tags = True
github.label_template = github_{{label}}
github.default_priority = M
github.project_template =
github.description_template = {{githuburl}} {{githubtitle}}
{% endraw -%}
github.password = {{ bugwarrior_github_password }}

[github_respond_personal]
{% raw -%}
service = github
github.username = djmitche
github.login = djmitche
github.query = is:open is:pr review-requested:djmitche -user:taskcluster -user:mozilla -user:mozilla-frontend-infra
github.include_user_issues = False
github.include_user_repos = False
github.import_labels_as_tags = True
github.label_template = github_{{label}}
github.add_tags = respond
github.default_priority = M
github.project_template =
github.description_template = {{githuburl}} {{githubtitle}}
{% endraw -%}
github.password = {{ bugwarrior_github_password }}

[bugzilla_mozilla]
{% raw -%}
service = bugzilla
bugzilla.base_uri = bugzilla.mozilla.org
bugzilla.ignore_cc = True
# assigned
bugzilla.query_url = https://bugzilla.mozilla.org/query.cgi?list_id=13470940&emailtype1=exact&emailassigned_to1=1&email1=dustin%40mozilla.com&resolution=---&query_format=advanced
bugzilla.add_tags = bugzilla
bugzilla.project_template = moz
bugzilla.default_priority = H
bugzilla.description_template = http://bugzil.la/{{bugzillabugid}} {{bugzillasummary}}
{% endraw -%}
bugzilla.username = {{ bugwarrior_bugzilla_username }}
bugzilla.api_key = {{ bugwarrior_bugzilla_api_key }}

[bugzilla_mozilla_respond]
{% raw -%}
service = bugzilla
bugzilla.base_uri = bugzilla.mozilla.org
bugzilla.ignore_cc = True
# ni?, f?, r?, not assigned
bugzilla.query_url = https://bugzilla.mozilla.org/query.cgi?j_top=OR&list_id=13320900&emailtype1=notequals&emailassigned_to1=1&o4=equals&email1=dustin%40mozilla.com&v4=dustin%40mozilla.com&o7=equals&v6=review%3F&f8=flagtypes.name&j5=OR&o6=equals&v7=needinfo%3F&f4=requestees.login_name&query_format=advanced&f3=OP&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&f5=OP&v8=feedback%3F&f6=flagtypes.name&f7=flagtypes.name&o8=equals
bugzilla.add_tags = bugzilla, respond
bugzilla.project_template = moz
bugzilla.description_template = http://bugzil.la/{{bugzillabugid}} {{bugzillasummary}}
{% endraw -%}
bugzilla.username = {{ bugwarrior_bugzilla_username }}
bugzilla.api_key = {{ bugwarrior_bugzilla_api_key }}

[personal_gmail]
{% raw -%}
service = gmail
# note that has:red-star doesn't work (perhaps it applies to messages only?)
gmail.query = is:starred label:INBOX
gmail.login_name = djmitche@gmail.com
gmail.description_template = {{gmailsubject}}
gmail.add_tags = email, respond
{% endraw -%}

[work_gmail]
{% raw -%}
service = gmail
gmail.query = is:starred label:INBOX
gmail.login_name = dmitchell@mozilla.com
gmail.description_template = {{gmailsubject}}
gmail.project_template = moz
gmail.add_tags = email, respond
{% endraw -%}

[mozilla_phab]
{% raw -%}
service = phabricator
phabricator.use_maniphest = False
phabricator.user_phids=PHID-USER-sdnm2ejgv4a4tscrqw3m
phabricator.project_template = moz
phabricator.ignore_cc = True
phabricator.ignore_author = True
phabricator.add_tags = phabricator, respond
phabricator.description_template = {{phabricatorurl}} {{phabricatortitle}}
{% endraw -%}