Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.egit.github.core/src')
-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 558c74f0..b262ae74 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
@@ -35,6 +35,8 @@ public class PullRequest implements Serializable {
private Date createdAt;
+ private long id;
+
private int additions;
private int changedFiles;
@@ -491,6 +493,22 @@ public class PullRequest implements Serializable {
return this;
}
+ /**
+ * @return id
+ */
+ public long getId() {
+ return id;
+ }
+
+ /**
+ * @param id
+ * @return this pull request
+ */
+ public PullRequest setId(long id) {
+ this.id = id;
+ return this;
+ }
+
@Override
public String toString() {
return "Pull Request " + number; //$NON-NLS-1$

Back to the top