From fbdd6fa0e21b717ffe74046351540fcd9b6b9151 Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Tue, 3 Sep 2013 16:16:35 +0200 Subject: Fixes for the 'bug', 'question', 'patch' tags. --- issues.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/issues.py b/issues.py index deeb741..826a3c4 100755 --- a/issues.py +++ b/issues.py @@ -112,6 +112,14 @@ def handle_tracker_item(item, issue_title_prefix): try: if "Feature" in issue_title_prefix: labels.append("enhancement") + if "Bug" in issue_title_prefix: + labels.append("bug") + if "Patch" in issue_title_prefix: + labels.append("patch") + labels.append("enhancement") + if "Support" in issue_title_prefix: + labels.append("question") + labels.append("import") labels.append(labelify("sf#"+item_id)) except KeyError: @@ -200,9 +208,11 @@ def userVerify(txt, abortOnFail=True): def getIssueTitlePrefix(trackername): prefixes = { - "Bugs": "", + "Bugs": "[Bug]", "Feature Request": "[Feature]", "Patch": "[Patch]", + "Patches": "[Patch]", + "Support Requests": "[Support]", "Tech Support": "[Support]" } if trackername in prefixes: -- cgit v1.2.1