Skip to content

Commit

Permalink
Remove use of the old contributors.json.
Browse files Browse the repository at this point in the history
  • Loading branch information
pelson committed Feb 12, 2019
1 parent 134ec39 commit 8fafabc
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions scitools_cla_checker/update_pr.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,26 +187,17 @@ def check_pr(repo, number):
@gen.coroutine
def get_contributors():
"""
Return a list of GitHub logins for those that are on the contributors.json
document.
Return a list of GitHub logins for those that have signed the CLA
"""
contrib_json = ('https://raw.githubusercontent.com/SciTools/'
'scitools.org.uk/master/contributors.json')
http_client = tornado.httpclient.AsyncHTTPClient()
response = yield http_client.fetch(contrib_json)
content = json.loads(response.body.decode())
signatures = sorted([person['profile_name']
for person in content['contributors']])

v4_json = (
'https://script.google.com/macros/s/'
'AKfycbwqZ0JLlOKJEcvYUYFXo77o6nux9tSHvOJISUnk3yHi-Bk0Qanz/exec')
response = yield http_client.fetch(v4_json)
content = json.loads(response.body.decode())
v4_signatures = sorted(content['signatories'])

return sorted(signatures + v4_signatures)
return sorted(v4_signatures)


def configure_default_client():
Expand Down

0 comments on commit 8fafabc

Please sign in to comment.