From 7fe734f2296edbb7bb0ce060634af72c5b48b7ab Mon Sep 17 00:00:00 2001 From: Date: Mon, 29 Apr 2013 22:27:41 +0200 Subject: tag feature reqs as enhancement --- issues.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3