summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2013-09-03 17:11:11 +0200
committerFlorian Jung <flo@windfisch.org>2013-09-03 17:11:11 +0200
commit8b59cdd4d68be28daa20a0a3f654d3b7a1402bad (patch)
tree540129539b157c46483724cd39f291423287259b
parent286e39adb5e124d5cb85ce08adc842bfd11abfb8 (diff)
Add tags for the 'resolution' field
-rwxr-xr-xissues.py20
1 files changed, 20 insertions, 0 deletions
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")