Skip to content

Commit

Permalink
Added milestone attribute to GHIssue
Browse files Browse the repository at this point in the history
  • Loading branch information
janinko committed Aug 31, 2012
1 parent b40677a commit ce47762
Showing 1 changed file with 8 additions and 3 deletions.
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

0 comments on commit ce47762

Please sign in to comment.