summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author <floe@butterbrot.org>2013-04-29 22:27:41 +0200
committer <floe@butterbrot.org>2013-04-29 22:27:41 +0200
commit7fe734f2296edbb7bb0ce060634af72c5b48b7ab (patch)
tree849b7187cd536532938cb52696bda522550ff7fb
parente819526aa5d14923e9b80fd6d0a834e11bf5e93d (diff)
tag feature reqs as enhancement
-rwxr-xr-xissues.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/issues.py b/issues.py
index 0dcc3fd..deeb741 100755
--- a/issues.py
+++ b/issues.py
@@ -98,7 +98,7 @@ def handle_tracker_item(item, issue_title_prefix):
if len(issue_title_prefix) > 0:
issue_title_prefix = issue_title_prefix.strip() + " "
- title = issue_title_prefix + item.find('field',attrs={'name':'summary'}).string
+ title = item.find('field',attrs={'name':'summary'}).string
item_id = item.find('field',attrs={'name':'artifact_id'}).string
item_submitter = item.find('field',attrs={'name':'submitted_by'}).string
item_details = item.find('field',attrs={'name':'details'}).string
@@ -110,6 +110,9 @@ def handle_tracker_item(item, issue_title_prefix):
closed = item_id in closed_status_ids
labels = []
try:
+ if "Feature" in issue_title_prefix:
+ labels.append("enhancement")
+ labels.append("import")
labels.append(labelify("sf#"+item_id))
except KeyError:
pass