diff options
author | Jon Ander Peñalba | 2016-04-20 22:48:15 +0000 |
---|---|---|
committer | Matthias Sohn | 2016-05-24 12:15:42 +0000 |
commit | f698a681d509059a0bdbd66b708235d685bdc91a (patch) | |
tree | 352ebf4f8ecc5188a110b6622503d2f60c6f993e | |
parent | bcfe738d435abaa0621d44efb431d578de1d6761 (diff) | |
download | egit-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.java | 54 |
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; + } } |