Skip to content
Snippets Groups Projects
Unverified Commit 6a0470c9 authored by Jesse Keating's avatar Jesse Keating Committed by GitHub
Browse files

Merge pull request #694 from discogestalt/fix_create_user

Switch class used when creating a user
parents 8f21f797 f8490599
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -150,3 +150,5 @@ Contributors
- Jesse Keating (@omgjlk)
 
- @rco-ableton
- Mark Troyer (@discogestalt)
Loading
Loading
@@ -1748,12 +1748,12 @@ class GitHubEnterprise(GitHub):
:param str login: (required), The user's username.
:param str email: (required), The user's email address.
 
:returns: :class:`User <github3.users.User>`, if successful
:returns: :class:`ShortUser <github3.users.ShortUser>`, if successful
"""
url = self._build_url('admin', 'users')
payload = {'login': login, 'email': email}
json_data = self._json(self._post(url, data=payload), 201)
return self._instance_or_null(users.User, json_data)
return self._instance_or_null(users.ShortUser, json_data)
 
@requires_auth
def admin_stats(self, option):
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment