Add PullRequestComment.in_reply_to_id (#718)

Fix for issue #717
This commit is contained in:
Jess Morgan
2018-04-06 18:17:20 +08:00
committed by Wan Liuyang
parent 5cb5ab71b3
commit eaa6a508f3
+11
View File
@@ -85,6 +85,14 @@ class PullRequestComment(github.GithubObject.CompletableGithubObject):
self._completeIfNotSet(self._id)
return self._id.value
@property
def in_reply_to_id(self):
"""
:type: integer
"""
self._completeIfNotSet(self._in_reply_to_id)
return self._in_reply_to_id.value
@property
def original_commit_id(self):
"""
@@ -226,6 +234,7 @@ class PullRequestComment(github.GithubObject.CompletableGithubObject):
self._created_at = github.GithubObject.NotSet
self._diff_hunk = github.GithubObject.NotSet
self._id = github.GithubObject.NotSet
self._in_reply_to_id = github.GithubObject.NotSet
self._original_commit_id = github.GithubObject.NotSet
self._original_position = github.GithubObject.NotSet
self._path = github.GithubObject.NotSet
@@ -247,6 +256,8 @@ class PullRequestComment(github.GithubObject.CompletableGithubObject):
self._diff_hunk = self._makeStringAttribute(attributes["diff_hunk"])
if "id" in attributes: # pragma no branch
self._id = self._makeIntAttribute(attributes["id"])
if "in_reply_to_id" in attributes: # pragma no branch
self._in_reply_to_id = self._makeIntAttribute(attributes["in_reply_to_id"])
if "original_commit_id" in attributes: # pragma no branch
self._original_commit_id = self._makeStringAttribute(attributes["original_commit_id"])
if "original_position" in attributes: # pragma no branch