Add Milestone property to PullRequest

Fixes #1071
This commit is contained in:
Eilon Lipton
2016-01-31 13:39:22 -08:00
parent 59df91d962
commit 8ee3029409
+7 -1
View File
@@ -14,7 +14,7 @@ namespace Octokit
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 @@ namespace Octokit
Additions = additions;
Deletions = deletions;
ChangedFiles = changedFiles;
Milestone = milestone;
}
/// <summary>
@@ -133,6 +134,11 @@ namespace Octokit
/// </summary>
public User Assignee { get; protected set; }
/// <summary>
/// The milestone, if any, that this pull request is assigned to.
/// </summary>
public Milestone Milestone { get; protected set; }
/// <summary>
/// Whether or not the pull request has been merged.
/// </summary>