Skip to content

Commit

Permalink
Merge pull request #890 from geek0r/milestone-close-date
Browse files Browse the repository at this point in the history
Add 'closed_at' to reflect latest changes in the milestones-api
  • Loading branch information
haacked committed Sep 17, 2015
2 parents 4592617 + 999fe0c commit 67c8d40
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Octokit/Models/Response/Milestone.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public Milestone(int number)
Number = number;
}

public Milestone(Uri url, int number, ItemState state, string title, string description, User creator, int openIssues, int closedIssues, DateTimeOffset createdAt, DateTimeOffset? dueOn)
public Milestone(Uri url, int number, ItemState state, string title, string description, User creator, int openIssues, int closedIssues, DateTimeOffset createdAt, DateTimeOffset? dueOn, DateTimeOffset? closedAt)
{
Url = url;
Number = number;
Expand All @@ -26,6 +26,7 @@ public Milestone(Uri url, int number, ItemState state, string title, string desc
ClosedIssues = closedIssues;
CreatedAt = createdAt;
DueOn = dueOn;
ClosedAt = closedAt;
}

/// <summary>
Expand Down Expand Up @@ -78,6 +79,11 @@ public Milestone(Uri url, int number, ItemState state, string title, string desc
/// </summary>
public DateTimeOffset? DueOn { get; protected set; }

/// <summary>
/// The date, if any, when this milestone was closed.
/// </summary>
public DateTimeOffset? ClosedAt { get; protected set; }

internal string DebuggerDisplay
{
get { return String.Format(CultureInfo.InvariantCulture, "Title {0} ", Title); }
Expand Down

0 comments on commit 67c8d40

Please sign in to comment.