1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

GitHub: Add more logging to the CLA check

This commit is contained in:
tpoole 2024-11-22 16:14:11 +00:00
parent 39b335ccef
commit ccdd857662

View file

@ -18,6 +18,7 @@ jobs:
with urllib.request.urlopen(req) as response:
return json.loads(response.read().decode('utf-8'))
prCommits = jsonRequest('https://api.github.com/repos/juce-framework/JUCE/pulls/${{ github.event.number }}/commits')
print(f'Commit info:\n{json.dumps(prCommits, indent=4)}')
allAuthors = [commit[authorType]['login'] for authorType in ['author', 'committer'] for commit in prCommits if commit[authorType]]
uniqueAuthors = [name for name in list(set(allAuthors)) if name != 'web-flow']
if (len(uniqueAuthors) == 0):