From eaa6a508f34d929b80b4d889335a9050935ca48c Mon Sep 17 00:00:00 2001 From: Jess Morgan <979404+JessMorgan@users.noreply.github.com> Date: Fri, 6 Apr 2018 06:17:20 -0400 Subject: [PATCH] Add PullRequestComment.in_reply_to_id (#718) Fix for issue #717 --- github/PullRequestComment.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/github/PullRequestComment.py b/github/PullRequestComment.py index 7d038733..dfb890a4 100644 --- a/github/PullRequestComment.py +++ b/github/PullRequestComment.py @@ -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