[openssl-commits] [tools] master update

Rich Salz rsalz at openssl.org
Tue Sep 26 10:18:12 UTC 2017


The branch master has been updated
       via  9d414292fe1a0ae6453284e11775ce3597032348 (commit)
      from  b04864d53c9b7a32c9d0957b2760688e0d6696c3 (commit)


- Log -----------------------------------------------------------------
commit 9d414292fe1a0ae6453284e11775ce3597032348
Author: Andy Polyakov <andy at openssl.org>
Date:   Tue Sep 26 06:14:55 2017 -0400

    Lowercase names; fix status update
    
    Check names as a lowercase match.
    Properly update status if 'CLA trivial'

-----------------------------------------------------------------------

Summary of changes:
 clacheck/clacheck.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/clacheck/clacheck.py b/clacheck/clacheck.py
index 24f844b..f63d9b2 100755
--- a/clacheck/clacheck.py
+++ b/clacheck/clacheck.py
@@ -14,7 +14,7 @@ env = os.environ
 textplain = "Content-type: text/plain\n\n"
 what = env.get('HTTP_X_GITHUB_EVENT', 'ping')
 From = re.compile("^From:.*<(.*)>")
-Trivial = re.compile("^\s*cla\s*:\s*trivial", re.IGNORECASE)
+Trivial = re.compile("^\s*CLA\s*:\s*TRIVIAL", re.IGNORECASE)
 URLpattern = re.compile("https?://([^/]*)/(.*)")
 SUCCESS = 'success'
 FAILURE = 'failure'
@@ -73,7 +73,7 @@ def have_cla(name):
         if not line or line[0] == '#':
             continue
         n = line.split()
-        if len(n) and n[0] == name:
+        if len(n) and n[0] == name.lower():
             return 1
     return 0
 
@@ -98,7 +98,7 @@ def process():
     for line in urllib.urlopen(patch_url):
         m = Trivial.match(line)
         if m:
-            update_state(pr, SUCCESS, "Trivial")
+            update_status(pr, SUCCESS, "Trivial")
             return
         m = From.match(line)
         if m and not have_cla(m.group(1)):


More information about the openssl-commits mailing list