[tools] master update
Richard Levitte
levitte at openssl.org
Sun Oct 27 16:42:04 UTC 2019
The branch master has been updated
via 73b0391902c67f9ebfcd5fa96cc10734d9631da8 (commit)
from dca934dedad04b7ba72542f0aefbeb54e22e55e1 (commit)
- Log -----------------------------------------------------------------
commit 73b0391902c67f9ebfcd5fa96cc10734d9631da8
Author: Dr. Matthias St. Pierre <Matthias.St.Pierre at ncp-e.com>
Date: Sat Oct 26 00:45:17 2019 +0200
clacheck: rename 'need-cla' label to 'hold: cla required'
Reviewed-by: Tim Hudson <tjh at openssl.org>
Reviewed-by: Richard Levitte <levitte at openssl.org>
(Merged from https://github.com/openssl/tools/pull/47)
-----------------------------------------------------------------------
Summary of changes:
clacheck/clacheck.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/clacheck/clacheck.py b/clacheck/clacheck.py
index afa09f0..2dbb6fd 100755
--- a/clacheck/clacheck.py
+++ b/clacheck/clacheck.py
@@ -20,6 +20,8 @@ SUCCESS = 'success'
FAILURE = 'failure'
CLAFILE = "/var/cache/openssl/checkouts/omc/cladb.txt" #<EDIT>
+CLA_LABEL = 'hold: cla required'
+
null_actions = (
'assigned', 'unassigned', 'labeled', 'unlabeled', 'closed',
'review_requested', 'review_request_removed',
@@ -55,14 +57,14 @@ def update_status(pr, state, description):
conn.getresponse().read()
host,url = url_split(pr['issue_url'])
if state == SUCCESS:
- url = url + '/labels/need-cla'
+ url = url + '/labels/' + urllib.quote(CLA_LABEL)
print 'Delete', url
conn.request('DELETE', url, None, headers)
elif state == FAILURE:
url = url + '/labels'
print 'Add need-cla', url
conn.set_debuglevel(99)
- conn.request('POST', url, '[ "need-cla" ]', headers)
+ conn.request('POST', url, '[ "{}" ]'.format(CLA_LABEL), headers)
reply = conn.getresponse().read()
print "--\n", reply
More information about the openssl-commits
mailing list