mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 03:11:09 +00:00
GithubObject.edit => restore testEditAuthenticatedUser
This commit is contained in:
@@ -48,7 +48,18 @@ class GitRef( object ):
|
||||
pass
|
||||
|
||||
def edit( self, sha, force = None ):
|
||||
pass
|
||||
post_parameters = {
|
||||
"sha": sha,
|
||||
}
|
||||
if force is not None:
|
||||
post_parameters[ "force" ] = force
|
||||
result = self.__github._dataRequest(
|
||||
"PATCH",
|
||||
"https://api.github.com/user",
|
||||
None,
|
||||
post_parameters
|
||||
)
|
||||
self.__useAttributes( result )
|
||||
|
||||
def __useAttributes( self, attributes ):
|
||||
if "object" in attributes:
|
||||
|
||||
Reference in New Issue
Block a user