From 8b59cdd4d68be28daa20a0a3f654d3b7a1402bad Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Tue, 3 Sep 2013 17:11:11 +0200 Subject: Add tags for the 'resolution' field --- issues.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/issues.py b/issues.py index 873b615..68d8f3f 100755 --- a/issues.py +++ b/issues.py @@ -110,6 +110,26 @@ def handle_tracker_item(item, issue_title_prefix): closed = item_id in closed_status_ids title=title+" [sf#%s]" % (item_id,) labels = [] + + try: + item_resolution = item.find('field',attrs={'name':'resolution'}).string + if "Duplicate" in item_resolution: + labels.append("duplicate") + if "Invalid" in item_resolution: + labels.append("invalid") + if "Later" in item_resolution: + labels.append("later") + if "Out of Date" in item_resolution: + labels.append("outofdate") + if "Remind" in item_resolution: + labels.append("remind") + if "Wont Fix" in item_resolution: + labels.append("wontfix") + if "Works For Me" in item_resolution: + labels.append("worksforme") + except: + pass + try: if "Feature" in issue_title_prefix: labels.append("enhancement") -- cgit v1.2.3