Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.egit.github.core')
-rw-r--r--org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/event/PullRequestReviewCommentPayload.java41
1 files changed, 41 insertions, 0 deletions
diff --git a/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/event/PullRequestReviewCommentPayload.java b/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/event/PullRequestReviewCommentPayload.java
index 04f6d8a0..2a52b37d 100644
--- a/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/event/PullRequestReviewCommentPayload.java
+++ b/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/event/PullRequestReviewCommentPayload.java
@@ -13,6 +13,7 @@ package org.eclipse.egit.github.core.event;
import java.io.Serializable;
import org.eclipse.egit.github.core.CommitComment;
+import org.eclipse.egit.github.core.PullRequest;
/**
* Payload for an event with type {@link Event#TYPE_PULL_REQUEST_REVIEW_COMMENT}
@@ -22,8 +23,30 @@ public class PullRequestReviewCommentPayload extends EventPayload implements
private static final long serialVersionUID = -2403658752886394741L;
+ private String action;
+
private CommitComment comment;
+ private PullRequest pullRequest;
+
+ /**
+ * @return action
+ * @since 4.1
+ */
+ public String getAction() {
+ return action;
+ }
+
+ /**
+ * @param action
+ * @return this PullRequestReviewCommentPayload
+ * @since 4.1
+ */
+ public PullRequestReviewCommentPayload setAction(String action) {
+ this.action = action;
+ return this;
+ }
+
/**
* @return comment
*/
@@ -39,4 +62,22 @@ public class PullRequestReviewCommentPayload extends EventPayload implements
this.comment = comment;
return this;
}
+
+ /**
+ * @return pullRequest
+ * @since 4.1
+ */
+ public PullRequest getPullRequest() {
+ return pullRequest;
+ }
+
+ /**
+ * @param pullRequest
+ * @return this PullRequestReviewCommentPayload
+ * @since 4.1
+ */
+ public PullRequestReviewCommentPayload setPullRequest(PullRequest pullRequest) {
+ this.pullRequest = pullRequest;
+ return this;
+ }
}

Back to the top