MCPcopy
hub / github.com/gitcoinco/web / get_user

Function get_user

app/git/utils.py:576–586  ·  view source on GitHub ↗

Get the github user details.

(user, sub_path='')

Source from the content-addressed store, hash-verified

574
575
576def get_user(user, sub_path=''):
577 """Get the github user details."""
578 user = user.replace('@', '')
579 url = f'https://api.github.com/users/{user}{sub_path}'
580 response = requests.get(url, auth=_AUTH, headers=HEADERS)
581
582 try:
583 response_dict = response.json()
584 except JSONDecodeError:
585 response_dict = {}
586 return response_dict
587
588
589def get_notifications():

Callers 11

test_get_userMethod · 0.90
test_get_user_subpathMethod · 0.90
get_avatarFunction · 0.90
get_github_avatarFunction · 0.90
sync_profileFunction · 0.90
github_starsFunction · 0.90
github_issuesFunction · 0.90
sync_profile_actionsMethod · 0.90
repos_dataMethod · 0.90
embedFunction · 0.90
get_github_event_emailsFunction · 0.85

Calls 1

replaceMethod · 0.80

Tested by 2

test_get_userMethod · 0.72
test_get_user_subpathMethod · 0.72