mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-02 11:51:10 +00:00
Update GitRef.py
This commit is contained in:
@@ -32,9 +32,6 @@ class GitRef(github.GithubObject.CompletableGithubObject):
|
||||
"""
|
||||
This class represents GitRefs as returned for example by http://developer.github.com/v3/todo
|
||||
"""
|
||||
def __init__(self, requester, attributes, completed):
|
||||
# Adapte for __init__ change, remove later
|
||||
github.GithubObject.CompletableGithubObject.__init__(self, requester, {}, attributes, completed)
|
||||
|
||||
@property
|
||||
def object(self):
|
||||
|
||||
@@ -441,7 +441,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
None,
|
||||
post_parameters
|
||||
)
|
||||
return github.GitRef.GitRef(self._requester, data, completed=True)
|
||||
return github.GitRef.GitRef(self._requester, headers, data, completed=True)
|
||||
|
||||
def create_git_tag(self, tag, message, object, type, tagger=github.GithubObject.NotSet):
|
||||
"""
|
||||
@@ -1032,7 +1032,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
None,
|
||||
None
|
||||
)
|
||||
return github.GitRef.GitRef(self._requester, data, completed=True)
|
||||
return github.GitRef.GitRef(self._requester, headers, data, completed=True)
|
||||
|
||||
def get_git_refs(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user