From 999fe0c2bc2342ff412082ff9c0b14f910681687 Mon Sep 17 00:00:00 2001 From: Eric Bartels Date: Fri, 11 Sep 2015 15:56:36 +0200 Subject: [PATCH] Add 'closed_at' to reflect latest changes in the milestones-api (see https://developer.github.com/v3/issues/milestones/) --- Octokit/Models/Response/Milestone.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Octokit/Models/Response/Milestone.cs b/Octokit/Models/Response/Milestone.cs index 30fbc72e25..c564fca747 100644 --- a/Octokit/Models/Response/Milestone.cs +++ b/Octokit/Models/Response/Milestone.cs @@ -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; @@ -26,6 +26,7 @@ public Milestone(Uri url, int number, ItemState state, string title, string desc ClosedIssues = closedIssues; CreatedAt = createdAt; DueOn = dueOn; + ClosedAt = closedAt; } /// @@ -78,6 +79,11 @@ public Milestone(Uri url, int number, ItemState state, string title, string desc /// public DateTimeOffset? DueOn { get; protected set; } + /// + /// The date, if any, when this milestone was closed. + /// + public DateTimeOffset? ClosedAt { get; protected set; } + internal string DebuggerDisplay { get { return String.Format(CultureInfo.InvariantCulture, "Title {0} ", Title); }