Browse files

Switch to being case insenstive when checking to make sure a given is…

…sue is actually a performance issue.
  • Loading branch information...
jkomoros committed May 18, 2012
1 parent 799e321 commit cd9199d1f5f6f3a52171c0d1e0f455da38dbd685
Showing with 1 addition and 1 deletion.
  1. +1 −1
@@ -109,7 +109,7 @@ def get_or_create_issue(number, access_token=""):
if data.get("number") != number:
return None
#Make sure it has the "Performance" label
- if not any(item.get("name") == "Performance" for item in data.get("labels", [])):
+ if not any(item.get("name", "").lower() == "performance" for item in data.get("labels", [])):
return None
#TODO: in the future we should check every so often if this issue is still valid.
issue = Issue(number = number)

0 comments on commit cd9199d

Please sign in to comment.