mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
GithubObject.edit => restore testEditAuthenticatedUser
This commit is contained in:
@@ -84,7 +84,25 @@ class Authorization( object ):
|
||||
pass
|
||||
|
||||
def edit( self, scopes = None, add_scopes = None, remove_scopes = None, note = None, note_url = None ):
|
||||
pass
|
||||
post_parameters = {
|
||||
}
|
||||
if scopes is not None:
|
||||
post_parameters[ "scopes" ] = scopes
|
||||
if add_scopes is not None:
|
||||
post_parameters[ "add_scopes" ] = add_scopes
|
||||
if remove_scopes is not None:
|
||||
post_parameters[ "remove_scopes" ] = remove_scopes
|
||||
if note is not None:
|
||||
post_parameters[ "note" ] = note
|
||||
if note_url is not None:
|
||||
post_parameters[ "note_url" ] = note_url
|
||||
result = self.__github._dataRequest(
|
||||
"PATCH",
|
||||
"https://api.github.com/user",
|
||||
None,
|
||||
post_parameters
|
||||
)
|
||||
self.__useAttributes( result )
|
||||
|
||||
def __useAttributes( self, attributes ):
|
||||
if "app" in attributes:
|
||||
|
||||
Reference in New Issue
Block a user