[asterisk-dev] Change in repotools[master]: Ignore JIRA uploads with license #2.

Corey Farrell (Code Review) asteriskteam at digium.com
Thu Mar 26 13:06:23 CDT 2015


Corey Farrell has uploaded a new change for review.

  https://gerrit.asterisk.org/12

Change subject: Ignore JIRA uploads with license #2.
......................................................................

Ignore JIRA uploads with license #2.

License #2 is used for files that are not patches or documentation.
Ignore any files with this license since they are not covered by
a CLA.

Change-Id: Ia76d2fe7e7357901f0e38b158b42f4323ccd120f
---
M commit_msg.py
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.asterisk.org:29418/repotools refs/changes/12/12/1

diff --git a/commit_msg.py b/commit_msg.py
index e342d47..f9b8849 100755
--- a/commit_msg.py
+++ b/commit_msg.py
@@ -64,7 +64,8 @@
             licenseid = json.loads(res.read())['properties']['license']
         except:
             '''Supress Exception'''
-        attachments.append("    %s submitted by %s (license %d)" % (x['filename'], x['author']['name'], licenseid))
+        if licenseid != 2:
+            attachments.append("    %s submitted by %s (license %d)" % (x['filename'], x['author']['name'], licenseid))
 except:
     attachments = None
     patches = None

-- 
To view, visit https://gerrit.asterisk.org/12
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia76d2fe7e7357901f0e38b158b42f4323ccd120f
Gerrit-PatchSet: 1
Gerrit-Project: repotools
Gerrit-Branch: master
Gerrit-Owner: Corey Farrell <git at cfware.com>



More information about the asterisk-dev mailing list