You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kibble.apache.org by hu...@apache.org on 2017/10/24 17:37:17 UTC

[kibble-scanners] branch master updated: this is sometimes all caps, need to lowercase it all

This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kibble-scanners.git


The following commit(s) were added to refs/heads/master by this push:
     new c0a2e33  this is sometimes all caps, need to lowercase it all
c0a2e33 is described below

commit c0a2e33441ed463d3d8ca36aa2a587ed7929dbde
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Tue Oct 24 19:37:08 2017 +0200

    this is sometimes all caps, need to lowercase it all
---
 src/plugins/scanners/jira.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/scanners/jira.py b/src/plugins/scanners/jira.py
index 2818e2e..7b32d4d 100644
--- a/src/plugins/scanners/jira.py
+++ b/src/plugins/scanners/jira.py
@@ -79,7 +79,7 @@ def wasclosed(js):
         for citem in cjs:
             if 'items' in citem:
                 for item in citem['items']:
-                    if item['field'] == 'status' and (item['toString'].find('Closed') != -1 or item['toString'].find('Resolved') != -1):
+                    if item['field'] == 'status' and (item['toString'].lower().find('closed') != -1 or item['toString'].lower().find('resolved') != -1):
                         return (True, citem['author'])
     else:
         if 'items' in js:

-- 
To stop receiving notification emails like this one, please contact
['"commits@kibble.apache.org" <co...@kibble.apache.org>'].