Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Ander Peñalba2016-04-20 22:48:15 +0000
committerMatthias Sohn2016-05-24 12:15:42 +0000
commitf698a681d509059a0bdbd66b708235d685bdc91a (patch)
tree352ebf4f8ecc5188a110b6622503d2f60c6f993e
parentbcfe738d435abaa0621d44efb431d578de1d6761 (diff)
downloadegit-github-f698a681d509059a0bdbd66b708235d685bdc91a.tar.gz
egit-github-f698a681d509059a0bdbd66b708235d685bdc91a.tar.xz
egit-github-f698a681d509059a0bdbd66b708235d685bdc91a.zip
Add missing attributes to CommitComment
https://developer.github.com/v3/pulls/comments/ Change-Id: I0a9cb66229fa890c913224376dab7a2d5d05962c Signed-off-by: Jon Ander Peñalba <jonan88@gmail.com> Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
-rw-r--r--org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/CommitComment.java54
1 files changed, 54 insertions, 0 deletions
diff --git a/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/CommitComment.java b/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/CommitComment.java
index bf9cc067..90e7c994 100644
--- a/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/CommitComment.java
+++ b/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/CommitComment.java
@@ -22,10 +22,16 @@ public class CommitComment extends Comment {
private int position;
+ private int originalPosition;
+
private String commitId;
+ private String originalCommitId;
+
private String path;
+ private String diffHunk;
+
/**
* @return line
*/
@@ -59,6 +65,22 @@ public class CommitComment extends Comment {
}
/**
+ * @return originalPosition
+ */
+ public int getOriginalPosition() {
+ return originalPosition;
+ }
+
+ /**
+ * @param originalPosition
+ * @return this commit comment
+ */
+ public CommitComment setOriginalPosition(int originalPosition) {
+ this.originalPosition = originalPosition;
+ return this;
+ }
+
+ /**
* @return commitId
*/
public String getCommitId() {
@@ -75,6 +97,22 @@ public class CommitComment extends Comment {
}
/**
+ * @return originalCommitId
+ */
+ public String getOriginalCommitId() {
+ return originalCommitId;
+ }
+
+ /**
+ * @param originalCommitId
+ * @return this commit comment
+ */
+ public CommitComment setOriginalCommitId(String originalCommitId) {
+ this.originalCommitId = originalCommitId;
+ return this;
+ }
+
+ /**
* @return path
*/
public String getPath() {
@@ -89,4 +127,20 @@ public class CommitComment extends Comment {
this.path = path;
return this;
}
+
+ /**
+ * @return diffHunk
+ */
+ public String getDiffHunk() {
+ return diffHunk;
+ }
+
+ /**
+ * @param diffHunk
+ * @return this commit comment
+ */
+ public CommitComment setDiffHunk(String diffHunk) {
+ this.diffHunk = diffHunk;
+ return this;
+ }
}

Back to the top