From 8ee3029409f8c6deb2cedd33c3d4990f61732b51 Mon Sep 17 00:00:00 2001 From: Eilon Lipton Date: Sun, 31 Jan 2016 13:39:22 -0800 Subject: [PATCH] Add Milestone property to PullRequest Fixes #1071 --- Octokit/Models/Response/PullRequest.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Octokit/Models/Response/PullRequest.cs b/Octokit/Models/Response/PullRequest.cs index 0c06f23ff0..131a53acea 100644 --- a/Octokit/Models/Response/PullRequest.cs +++ b/Octokit/Models/Response/PullRequest.cs @@ -14,7 +14,7 @@ public PullRequest(int number) Number = number; } - public PullRequest(Uri url, Uri htmlUrl, Uri diffUrl, Uri patchUrl, Uri issueUrl, Uri statusesUrl, int number, ItemState state, string title, string body, DateTimeOffset createdAt, DateTimeOffset updatedAt, DateTimeOffset? closedAt, DateTimeOffset? mergedAt, GitReference head, GitReference @base, User user, User assignee, bool? mergeable, User mergedBy, int comments, int commits, int additions, int deletions, int changedFiles) + public PullRequest(Uri url, Uri htmlUrl, Uri diffUrl, Uri patchUrl, Uri issueUrl, Uri statusesUrl, int number, ItemState state, string title, string body, DateTimeOffset createdAt, DateTimeOffset updatedAt, DateTimeOffset? closedAt, DateTimeOffset? mergedAt, GitReference head, GitReference @base, User user, User assignee, bool? mergeable, User mergedBy, int comments, int commits, int additions, int deletions, int changedFiles, Milestone milestone) { Url = url; HtmlUrl = htmlUrl; @@ -41,6 +41,7 @@ public PullRequest(Uri url, Uri htmlUrl, Uri diffUrl, Uri patchUrl, Uri issueUrl Additions = additions; Deletions = deletions; ChangedFiles = changedFiles; + Milestone = milestone; } /// @@ -133,6 +134,11 @@ public PullRequest(Uri url, Uri htmlUrl, Uri diffUrl, Uri patchUrl, Uri issueUrl /// public User Assignee { get; protected set; } + /// + /// The milestone, if any, that this pull request is assigned to. + /// + public Milestone Milestone { get; protected set; } + /// /// Whether or not the pull request has been merged. ///