Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKelvin Zhu2020-05-29 06:47:29 +0000
committerKelvin Zhu2020-05-29 07:01:20 +0000
commit112ee876a0daa41838dd2a9ba553a88731f6f3c5 (patch)
treedc5c41b91129165408d2e6da650e68720a4e084f /org.eclipse.egit.github.core
parent00d08fc2ba0e6bc720b6c23c50d6725317aeef0c (diff)
downloadegit-github-112ee876a0daa41838dd2a9ba553a88731f6f3c5.tar.gz
egit-github-112ee876a0daa41838dd2a9ba553a88731f6f3c5.tar.xz
egit-github-112ee876a0daa41838dd2a9ba553a88731f6f3c5.zip
Adding the mergeableState field to pull requests
Making it so that the mergeableState field is available as part of pull requests whose possible values are documented at https://developer.github.com/v4/enum/mergestatestatus/ Change-Id: I81157e39f4251e96eb205b4a4934e59cf7383b86 Signed-off-by: Kelvin Zhu <kelvinzhu2000@yahoo.com>
Diffstat (limited to 'org.eclipse.egit.github.core')
-rw-r--r--org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/PullRequest.java18
1 files changed, 18 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 2df4f767..c1f66720 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
@@ -28,6 +28,8 @@ public class PullRequest implements Serializable {
private Boolean mergeable;
+ private String mergeableState;
+
private boolean merged;
private Date closedAt;
@@ -114,6 +116,22 @@ public class PullRequest implements Serializable {
}
/**
+ * @return mergeableState
+ */
+ public String getMergeableState() {
+ return mergeableState;
+ }
+
+ /**
+ * @param mergeableState
+ * @return this pull request
+ */
+ public PullRequest setMergeableState(String mergeableState) {
+ this.mergeableState = mergeableState;
+ return this;
+ }
+
+ /**
* @return merged
*/
public boolean isMerged() {

Back to the top