Update Milestone.py

This commit is contained in:
AKFish
2013-08-21 16:24:27 +08:00
parent 175488270a
commit e4baf577ed
3 changed files with 3 additions and 6 deletions
+2 -2
View File
@@ -629,7 +629,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
None,
post_parameters
)
return github.Milestone.Milestone(self._requester, data, completed=True)
return github.Milestone.Milestone(self._requester, headers, data, completed=True)
def create_pull(self, *args, **kwds):
"""
@@ -1306,7 +1306,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
None,
None
)
return github.Milestone.Milestone(self._requester, data, completed=True)
return github.Milestone.Milestone(self._requester, headers, data, completed=True)
def get_milestones(self, state=github.GithubObject.NotSet, sort=github.GithubObject.NotSet, direction=github.GithubObject.NotSet):
"""