Update octosuite.py

This commit is contained in:
Richard Mwewa
2023-01-25 23:00:05 +02:00
committed by GitHub
parent 57911bd68f
commit 1f288d503f

View File

@@ -210,7 +210,6 @@ GitHub REST API documentation: https://docs.github.com/rest
def get_email_from_contributor(username, repo, contributor):
json_output = {}
response = requests.get(f"https://github.com/{username}/{repo}/commits?author={contributor}",
auth=HTTPBasicAuth(username, '')).text
latest_commit = re.search(rf'href="/{username}/{repo}/commit/(.*?)"', response)