Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues pull requests apiv3 #17

Merged
merged 8 commits into from
Sep 6, 2012
Prev Previous commit
Next Next commit
Added milestone attribute to GHIssue
  • Loading branch information
janinko committed Aug 31, 2012
commit ce47762fbffa654902dd2cae70084e9d3259b493
11 changes: 8 additions & 3 deletions src/main/java/org/kohsuke/github/GHIssue.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,15 @@ public class GHIssue {
private GHSmallUser user;
private String title, created_at, html_url;
private GHIssue.PullRequest pull_request;
// GHIssue milestone
private GHMilestone milestone;
private String url, updated_at;
private int id;
private GHSmallUser closed_by;

/*package*/ GHIssue wrap(GHRepository owner) {
this.owner = owner;
this.root = owner.root;
if(milestone != null) milestone.wrap(owner);
if(assignee != null) assignee.wrapUp(root);
if(user != null) user.wrapUp(root);
if(closed_by != null) closed_by.wrapUp(root);
Expand Down Expand Up @@ -226,8 +227,12 @@ public int getCommentsCount(){

public PullRequest getPullRequest() {
return pull_request;
}

}

public GHMilestone getMilestone() {
return milestone;
}

public class PullRequest{
private String diff_url, patch_url, html_url;

Expand Down