Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZehua Liu2014-08-01 06:32:05 +0000
committerZehua Liu2014-08-04 01:07:14 +0000
commit7fc22aa1b19d5b8eb9f4bfb9c4fca76e3b634ef3 (patch)
tree1cc56bea1c3ea92637d4ac51922e3d2dc6f820af /org.eclipse.egit.github.core
parentba28856a2f6ed0a85004aca2c7cf977876913bfb (diff)
downloadegit-github-7fc22aa1b19d5b8eb9f4bfb9c4fca76e3b634ef3.tar.gz
egit-github-7fc22aa1b19d5b8eb9f4bfb9c4fca76e3b634ef3.tar.xz
egit-github-7fc22aa1b19d5b8eb9f4bfb9c4fca76e3b634ef3.zip
Added the review_comments field into the PullRequest class
Bug: 435580 Change-Id: I40a6d493ed8ad50dc989ab696d4a0ae4723453ac Signed-off-by: Zehua Liu <zliu@atlassian.com>
Diffstat (limited to 'org.eclipse.egit.github.core')
-rw-r--r--org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/PullRequest.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/PullRequest.java b/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/PullRequest.java
index 98f731f7..ab4dc714 100644
--- a/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/PullRequest.java
+++ b/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/PullRequest.java
@@ -43,6 +43,8 @@ public class PullRequest implements Serializable {
private int comments;
+ private int reviewComments;
+
private int commits;
private int deletions;
@@ -226,6 +228,24 @@ public class PullRequest implements Serializable {
}
/**
+ * @return number of inline comments on the diff in the pull request
+ */
+ public int getReviewComments()
+ {
+ return reviewComments;
+ }
+
+ /**
+ * @param reviewComments {@link #getReviewComments()}
+ * @return this pull request
+ */
+ public PullRequest setReviewComments(int reviewComments)
+ {
+ this.reviewComments = reviewComments;
+ return this;
+ }
+
+ /**
* @return commits
*/
public int getCommits() {

Back to the top