diff --git a/github/PullRequest.py b/github/PullRequest.py index 0adad292..ba02376e 100644 --- a/github/PullRequest.py +++ b/github/PullRequest.py @@ -462,7 +462,7 @@ class PullRequest(github.GithubObject.CompletableGithubObject): None, post_parameters ) - return github.PullRequestMergeStatus.PullRequestMergeStatus(self._requester, data, completed=True) + return github.PullRequestMergeStatus.PullRequestMergeStatus(self._requester, headers, data, completed=True) def _initAttributes(self): self._additions = github.GithubObject.NotSet diff --git a/github/PullRequestMergeStatus.py b/github/PullRequestMergeStatus.py index 7151b21f..f9bae790 100644 --- a/github/PullRequestMergeStatus.py +++ b/github/PullRequestMergeStatus.py @@ -31,11 +31,6 @@ class PullRequestMergeStatus(github.GithubObject.NonCompletableGithubObject): """ This class represents PullRequestMergeStatuss. The reference can be found here http://developer.github.com/v3/pulls/#get-if-a-pull-request-has-been-merged """ - def __init__(self, requester, attributes, completed): - ''' - Adapte for __init__ change, remove later - ''' - github.GithubObject.NonCompletableGithubObject.__init__(self, requester, {}, attributes, completed) @property def merged(self):