diff options
author | Florian Jung <flo@windfisch.org> | 2013-09-03 17:11:11 +0200 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2013-09-03 17:11:11 +0200 |
commit | 8b59cdd4d68be28daa20a0a3f654d3b7a1402bad (patch) | |
tree | 540129539b157c46483724cd39f291423287259b | |
parent | 286e39adb5e124d5cb85ce08adc842bfd11abfb8 (diff) |
Add tags for the 'resolution' field
-rwxr-xr-x | issues.py | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -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") |